-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[bitnami/common] Add support for customizing standard labels #18154
Conversation
1c4c6b1
to
df05cec
Compare
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.
The code as such LGTM, as far as I can tell (just that minor typo in a comment that we should fix).
But I'd like to try this out first before approving, to confirm that it behaves as I expect.
Everything seems to work as expected when I tried it out! 👍 Good work! |
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.
LGTM
2b1138c
to
81bd30d
Compare
Signed-off-by: juan131 <[email protected]>
Co-authored-by: David Gomez <[email protected]> Signed-off-by: Juan Ariza Toledano <[email protected]> Signed-off-by: juan131 <[email protected]>
Signed-off-by: juan131 <[email protected]>
Signed-off-by: juan131 <[email protected]>
81bd30d
to
f7d41e1
Compare
We're in the process of upgrading our helm version 👍 . I will report back if the issue remains after the upgrade. Otherwise, I consider this case closed for me. |
@juan131 I tried to reproduce @Qjammer with helm 3.5 because the prerequites in the README.md of this repo state that helm 3.2+ is supported:
As I said in my comment , go > 1.16 should fix the issue, and helm > 3.6 are built with such versions of go. |
I guess the multiline pipeline could be rewriten like :
|
Description of the change
This PR makes it possible to overwrite the standard labels below that are currently set with predefined values based on chart name, chart release name, etc.
app.kubernetes.io/name
helm.sh/chart
app.kubernetes.io/managed-by
app.kubernetes.io/instance
Benefits
Users can set any desired custom value to the labels mentioned above.
Possible drawbacks
We'll have to update every single chart right away to make them compatible with new
common.labels.standard
andcommon.labels.matchLabels
helpers' format.Applicable issues
managed-by
label viacommonLabels
#18025Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.Additional information
Find below an example for adopting the new helper format on Apache:
Using the changes mentioned above we can customize labels as shown in the example below: