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
enhancement(helm platform): Kubernetes recommanded labels and additional labels #7687
Conversation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
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.
Left a couple of thoughts
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.
Thanks for adding this @nlamirault - I've left a couple more notes and requests
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Sorry @nlamirault - I realize I wasn't super clear. For the This is an example of us determining which value (global vs "local") but I can see a use for defining at both levels at the same time, so I think we can just do an Does that seem reasonable to you? |
like ? {{- if .Values.global }}
{{- if .Values.global.vector }}
{{- if .Values.global.vector.commonLabels }}
{{ toYaml .Values.global.vector.commonLabels }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.commonLabels }}
{{ toYaml .Values.commonLabels }}
{{- end }} and : global:
vector:
# Additional labels to add to all resources
commonLabels: #{}
app: vector commonLabels: #{}
app.kubernetes.io/component: agent commonLabels: #{}
app.kubernetes.io/component: aggregator |
Yep - that looks like it should work 👍 |
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
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.
Thanks - @jszwedko do you have any more thoughts here? We will be adding some more labels by default, that doesn't really bother me but wasn't sure if you had an opinion
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
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.
Thanks again for the updates, left some suggestions to keep the existing behavior by default.
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
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.
Thanks so much @nlamirault, really appreciate the PR 😃 mind re-generating the resource files and I'll merge once the check is green
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Thanks! |
Signed-off-by: Nicolas Lamirault nicolas.lamirault@gmail.com