-
Notifications
You must be signed in to change notification settings - Fork 61
Add custom Pod labels #1550
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
base: main
Are you sure you want to change the base?
Add custom Pod labels #1550
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jondoveston The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @jondoveston. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
b073afc to
daedd55
Compare
|
/ok-to-test |
cfa0469 to
4098ca4
Compare
|
Hi @jondoveston Thank you for your contribution!! To be able to modify the pod labels, I think the operator would need to recreate (delete then provision a new one) the |
4098ca4 to
dda2e5d
Compare
|
@git-hyagi Yes. The selector is immutable and so cannot be changed after creation. The |
|
oh nice!! Everything looks good to me, so, to merge this, would you mind fixing the CI errors
|
…ents This commit adds the ability to specify pod labels for each Pulp component through the CR specification. Changes: - Added PodLabels to Api, Content, Worker, API, Database and Cache structs - Added PulpcorePodLabels function to merge pod labels
Closes: pulp#1553
ee37a16 to
687c0e9
Compare
|
@git-hyagi I've fixed the conflicts and updated the last commit message. Can you confirm the operator is still trying to change the immutable pod selector in the Redis Deployment? The code seems ok and my local testing works. |
Add a
pod_labelsfield to each Pulpcore component configuration in the CR.These custom Pod labels are merged with the current default labels in the
settings.PulpcorePodLabelsfunction that is used across all components to generate the labels for various Pods.
This does not affect the labels for Services, Deployments, StatefulSets and most importantly Pod selectors.
Custom Pod labels will not override the default labels to ensure the immutable selectors do not change.
Closes #1553