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
Enable adding of additional Labels to speaker+controller #1797
Conversation
This PR has been automatically marked as stale because it has been open 30 days
|
@fedepaol could you please take a look? |
@@ -6,6 +6,11 @@ metadata: | |||
labels: | |||
{{- include "metallb.labels" . | nindent 4 }} | |||
app.kubernetes.io/component: controller | |||
{{- if .Values.controller.additionalLabels }} |
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 you need this check. If I remember well, "with" and "range" do not generate output if the array is empty.
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.
right!
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 @mlguerrero12 , I wasn't aware of this!
/lgtm |
@DerFels please run inv helmdocs to regenerate the helm docs (ci is annoying but prevents errors :-) ) |
Done :) |
6311acf
to
303b731
Compare
Hi Metallb Team,
we have several labels that we like to add to our k8s resources. Some are purely for humans, while others are technically relevant (f.e. tracing, NetworkPolicies).
I noticed that your helm chart does not offer this functionality, so I wanted to help by adding a little code that enables users to specify additionaLabels in the values.yaml which will be picked up by the speaker+controller Daemonsets.
If there is anything missing or you disagree with the solution, I'm always open to feedback :)
Also: Thanks for providing a helm chart in the first place!