-
Notifications
You must be signed in to change notification settings - Fork 56
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
K8SPG-487: add global annotations and labels for cr.yaml
#956
base: main
Are you sure you want to change the base?
Conversation
if cr.CompareVersion("2.6.0") >= 0 && cr.Spec.Metadata != nil { | ||
newCASecret.Annotations = cr.Spec.Metadata.Annotations | ||
newCASecret.Labels = cr.Spec.Metadata.Labels | ||
} |
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 didn't catch this place, if we will have different annotations (for example for extentions too), should we put it to secret annotations?
@@ -7,6 +7,11 @@ metadata: | |||
# - percona.com/delete-ssl | |||
spec: | |||
crVersion: 2.6.0 | |||
# metadata: | |||
# annotations: | |||
# test-annotation: value |
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.
Do we want to have a test
prefix here in the CR? Maybe something like example-annotation
or annotation-key
. Test feels like a leftover from some testing.
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.
@pooknull wdyt about this?
@pooknull pls check unit tests. |
commit: bbcf318 |
https://perconadev.atlassian.net/browse/K8SPG-487
DESCRIPTION
Problem:
It’s not possible to set
annotations
/labels
at a global level for all resources created by operator.Solution:
Add
.spec.metadata.labels
and.spec.metadata.annotations
fields to thecr.yaml
.CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
Config/Logging/Testability