You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OCI annotations can be set on manifests, to provide metadata about the images.
ko today supports setting labels (introduced by docker) but not setting annotations (introduced by the OCI spec).
It does set annotations related to the base image used, which is great, but it also sets additional annotations, inherited from the base image, which do not apply to the target image, and cannot be overwritten using ko.
This feature request stems from something I noticed on Tekton container images.
Since Tekton uses Chainguard's base images and ko to build its images, the annotations resulting in Tekton images look like:
This adds a new build flag for setting annotations
on image indexes and manifests.
Annotations are no longer copied from the base image.
`org.opencontainers.image.base.digest` and
`org.opencontainers.image.base.name`
are always set to the resolved values.
Usage example:
```sh
ko build --image-annotation foo=bar,fizz=buzz .
```
Fixesko-build#1090Fixesko-build#1090Fixesko-build#1231Fixesko-build#1235Fixesko-build#1395
OCI annotations can be set on manifests, to provide metadata about the images.
ko
today supports setting labels (introduced by docker) but not setting annotations (introduced by the OCI spec).It does set annotations related to the base image used, which is great, but it also sets additional annotations, inherited from the base image, which do not apply to the target image, and cannot be overwritten using
ko
.This feature request stems from something I noticed on Tekton container images.
Since Tekton uses Chainguard's base images and
ko
to build its images, the annotations resulting in Tekton images look like:While the
org.opencontainers.image.base
part is correct, the values author, source and URL do not apply to Tekton images.The text was updated successfully, but these errors were encountered: