Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom annotations to be set when pushing OCI artifacts #3653

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Mar 3, 2023

Example:

  kustomize build . | flux push artifact oci://ghcr.io/org/config/app:$(git rev-parse --short HEAD) -f - \ 
    --source="$(git config --get remote.origin.url)" \
    --revision="$(git branch --show-current)@sha1:$(git rev-parse HEAD)" \
    --annotations='org.opencontainers.image.licenses=Apache-2.0' \
    --annotations='org.opencontainers.image.documentation=https://app.org/docs' \
    --annotations='org.opencontainers.image.description=Production config.'

These annotations will be available in-cluster under OCIRepository.status.artifact.metadata.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added area/UX area/oci OCI related issues and pull requests labels Mar 3, 2023
@stefanprodan stefanprodan merged commit 2e4de67 into main Mar 3, 2023
@stefanprodan stefanprodan deleted the push-with-annotations branch March 3, 2023 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oci OCI related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants