-
Notifications
You must be signed in to change notification settings - Fork 290
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
[stable/aws-s3-proxy] Sync labels btw pod and deployment #588
[stable/aws-s3-proxy] Sync labels btw pod and deployment #588
Conversation
@@ -8,13 +8,11 @@ spec: | |||
replicas: {{ .Values.replicaCount }} | |||
selector: | |||
matchLabels: | |||
app.kubernetes.io/name: {{ include "aws-s3-proxy.name" . }} | |||
app.kubernetes.io/instance: {{ .Release.Name }} | |||
{{ include "aws-s3-proxy.labels" . | indent 6 }} |
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 don't think this part should change as selector labels are immutable and shouldn't be treated like the other 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.
Hi there, thanks for your comment!
Are you suggesting that the changes to matchLabels
might cause breaking changes? If that’s the case, I’ll revert the changes to matchLabels
. 🙏
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.
Exactly, they are immutable, you can't change them without deleting and recreating the resource. So I would just not change this part.
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’ve reverted it. Thanks for pointing it out and for your kind review! 😄
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.
Nice, thanks @BlueHorn07 💖
…o#588) * sync labes between deployment and pod * bump chart version to 0.1.5 * revert matchLabels changes
Description
The labels for Deployment, Ingress, and Services are defined as aws-s3-proxy.labels in the _helpers.tpl file. However, the labels for pods do not use these common labels.
In my experience, when I added extraLabels in the values file, they were not applied to the pods’ labels, only to the Deployment and other resources.
I believe that using the defined common labels for pods as well would be more helpful.
Checklist
[stable/mychartname]
)