-
-
Notifications
You must be signed in to change notification settings - Fork 593
Use labels suggested by Kubernetes and Helm best practices #932
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: master
Are you sure you want to change the base?
Conversation
@@ -27,12 +27,16 @@ Create chart name and version as used by the chart label. | |||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | |||
{{- end }} | |||
|
|||
{{- define "reloader-match-labels.chart" -}} | |||
app.kubernetes.io/name: {{ template "reloader-name" . }} |
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.
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 mentioning the issue, I'm aware of it and I did my best to avoid the same situation happens again, the labels are now set systematically for all resources, which should prevent this at the cost of need to force-reconciliate during the upgrade. (thus the change of the major version of the helm-chart)
Hi @pinkavaj! Thank you for your contribution! I do think that this looks correct and will not trigger the mentioned bug. However making a major release means more work both for us writing change-logs and for users reading them to validate major upgrades, so I'm hesitant to upgrade the major version on a technicality. I do also see your point about standard tooling and such so I would like to propose we split this into 2 PRs. The first will keep almost all changes, except the The second one would change the keys used in the PS. You also have a merge conflict which would need to be resolved. :) |
This improves the compatibility and makes it easier to work with various tools, which take advantake from the assumption of existence of those labels. Keep the old labels for selectors for backward compatibility. Also note there is slight change in behaviour of PDB which might be backward-incompatible in some rare cases.
This improves the compatibility and makes it easier to work with various tools, which take advantake from the assumption of existence of those labels.
Close #496
This improves the compatibility and makes it easier to work with various tools, which take advantage from the assumption of existence of those labels.
Changing the selectors is breaking change, so the bump of the major version of the helm chart.
I'm not sure about the original intention of the use of
reloader.matchLabels
, it seems to me they kind of duplicate thereloader.labels
, but I would like to keep the amount of changes at minimum.The chart was tested with the following values: