-
Notifications
You must be signed in to change notification settings - Fork 173
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
feat: add metadata.annotations
to v1alpha1
schema
#3044
Conversation
metadata.annotations
to v1alpha1 schemametadata.annotations
to v1alpha1
schema
✅ Deploy Preview for zarf-docs canceled.
|
Signed-off-by: Marshall Cottrell <[email protected]>
Signed-off-by: Marshall Cottrell <[email protected]>
fb6350c
to
7e847b3
Compare
// annotations explicitly defined in `metadata.annotations` take precedence over legacy fields | ||
maps.Copy(annotations, metadata.Annotations) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not find any existing tests for populating annotations on the OCI manifest and config. Happy to add some if there is an obvious place to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah there aren't currently any tests that verify that annotations end up on the manifest or manifest config
Codecov ReportAttention: Patch coverage is
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to discuss if this should be added to a new API Version or not before merging this.
Thank you for this contribution, but due to the work we are planning on v1.0 this may conflict with our own implementations. |
Description
This adds
metadata.annotations
fromv1beta1
to the existingv1alpha1
schema. It also adds them to the OCI config descriptor and image manifests.Related Issue
Relates to #2976.
Checklist before merging