-
Notifications
You must be signed in to change notification settings - Fork 22
Add the spec.copyPolicyMetadata field #91
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
Add the spec.copyPolicyMetadata field #91
Conversation
// If set to false, only the policy framework specific policy labels and annotations will be copied to the | ||
// replicated policy. | ||
// +kubebuilder:validation:Optional | ||
CopyPolicyMetadata *bool `json:"copyPolicyMetadata,omitempty"` |
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.
Note that this is a pointer to avoid setting a default in the CRD to always cause this field to be shown when unset.
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.
/hold
LGTM! Not sure whether other reviews are needed--unhold if not! 🙂
Thanks for the review! I'll wait for a second +1 since it is a CRD change. |
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.
LGTM!
This new field allows a replicated policy to not have labels and annotations that are not managed by the policy framework. This is useful in the case where policies are deployed with ArgoCD and you don't want them to show up in the ArgoCD UI. Additionally, the argocd.argoproj.io/compare-options annotation is now always set to IgnoreExtraneous on the replicated policies to avoid ArgoCD trying to manage the replicated policies. Relates: https://issues.redhat.com/browse/ACM-1690 Signed-off-by: mprahl <[email protected]>
@dhaiducek and @JustinKuli , I realized I had a typo in the commit subject, so I had to force push. Could you please approve it again? |
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.
...and now I have two e-mail threads for this PR 😉
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhaiducek, mprahl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
This new field allows a replicated policy to not have labels and annotations that are not managed by the policy framework. This is useful in the case where policies are deployed with ArgoCD and you don't want them to show up in the ArgoCD UI.
Additionally, the argocd.argoproj.io/compare-options annotation is now always set to IgnoreExtraneous on the replicated policies to avoid ArgoCD trying to manage the replicated policies.
Relates:
https://issues.redhat.com/browse/ACM-1690