You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug a clear and concise description of what the bug is.
In prometheus-blackbox-exporter and many others the app.kubernetes.io/version label is hardcoded to .Chart.AppVersion and doesn't reflect changes that can be set in chart's values such as .Values.image.tag that is contradiction to what is recommended in kubernetes documentation
When I apply a chart and set .Values.image.tag to v0.24.0 the resources created have a label set to a wrong version (inherited from .Chart.AppVersion = app.kubernetes.io/version: "v0.25.0"
What you expected to happen?
I expected label to represent the current version of the application (as suggested in kubernetes documentation): app.kubernetes.io/version: "v0.24.0"
How to reproduce it?
Run helm template test prometheus-community/prometheus-blackbox-exporter --set image.tag="v0.24.0" and check the labels produced for the resources
Enter the changed values of values.yaml?
image:
tag: v0.24.0
Enter the command that you execute and failing/misfunctioning.
helm template test prometheus-community/prometheus-blackbox-exporter --set image.tag="v0.24.0"
Anything else we need to know?
This issue seems to be present in multiple charts, please check it and possibly update in other charts.
The text was updated successfully, but these errors were encountered:
Describe the bug a clear and concise description of what the bug is.
In prometheus-blackbox-exporter and many others the
app.kubernetes.io/version
label is hardcoded to.Chart.AppVersion
and doesn't reflect changes that can be set in chart's values such as.Values.image.tag
that is contradiction to what is recommended in kubernetes documentationPlease consider setting proper inheritance such as:
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
What's your helm version?
v3.16.1
What's your kubectl version?
v1.28.13
Which chart?
prometheus-blackbox-exporter
What's the chart version?
9.0.0
What happened?
When I apply a chart and set
.Values.image.tag
tov0.24.0
the resources created have a label set to a wrong version (inherited from.Chart.AppVersion
=app.kubernetes.io/version: "v0.25.0"
What you expected to happen?
I expected label to represent the current version of the application (as suggested in kubernetes documentation):
app.kubernetes.io/version: "v0.24.0"
How to reproduce it?
Run
helm template test prometheus-community/prometheus-blackbox-exporter --set image.tag="v0.24.0"
and check the labels produced for the resourcesEnter the changed values of values.yaml?
image:
tag: v0.24.0
Enter the command that you execute and failing/misfunctioning.
helm template test prometheus-community/prometheus-blackbox-exporter --set image.tag="v0.24.0"
Anything else we need to know?
This issue seems to be present in multiple charts, please check it and possibly update in other charts.
The text was updated successfully, but these errors were encountered: