Skip to content

feat: Change template annotation to use k8s-style casing#352

Closed
julianKatz wants to merge 1 commit into
open-policy-agent:masterfrom
julianKatz:change-sync-data-annotation-casing
Closed

feat: Change template annotation to use k8s-style casing#352
julianKatz wants to merge 1 commit into
open-policy-agent:masterfrom
julianKatz:change-sync-data-annotation-casing

Conversation

@julianKatz
Copy link
Copy Markdown
Contributor

In open-policy-agent/gatekeeper#2734 (comment) the decision was made to change the sync data anotation casing from requiresSyncData to requires-sync-data. This better fits k8s standards.

This PR updates gatekeeper-library templates with the new annotation key.

In open-policy-agent/gatekeeper#2734 (comment)
the decision was made to change the sync data anotation casing from
`requiresSyncData` to `requires-sync-data`.  This better fits k8s
standards.

This PR updates gatekeeper-library templates with the new annotation
key.

Signed-off-by: juliankatz <juliankatz@google.com>
Copy link
Copy Markdown
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @julianKatz! - The CI is asking for a make generate generate-website-docs generate-artifacthub-artifacts - however I suspect that it will block on changing the already released template versions, so we'll probably need to bump the relevant template patch versions and release as new template versions.

@@ -5,7 +5,7 @@ metadata:
annotations:
metadata.gatekeeper.sh/title: "Horizontal Pod Autoscaler"
metadata.gatekeeper.sh/version: 1.0.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
metadata.gatekeeper.sh/version: 1.0.0
metadata.gatekeeper.sh/version: 1.0.1

@julianKatz
Copy link
Copy Markdown
Contributor Author

I'm going to let @apeabody take the lead here and close this PR.

@julianKatz julianKatz closed this Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants