-
Notifications
You must be signed in to change notification settings - Fork 24
Description
i would like to annotate the OCI bundles i produce from kubecfg pack (to store provenance information, e.g. source git commit and such). i experimented with using crane mutate
to set them on the bundle by tag (which creates a new image obviously, but moves the tag) but it clears the config that kubecfg pack puts on the bundle (or more accurately doesn't copy it over to the new bundle). this means you can't later render it with kubecfg show
because the entrypoint is in the config. i believe crane does this because oras uses config for non-standard things that container type tools like crane don't expect.
as i see it the best solution is to support the addition of annotations in kubecfg pack itself. should simply be a matter of exposing the CLI arg and then putting them into the manifest (not the config).
happy to contribute it myself but thought i'd write up the background and rationale here.