Skip to content

Commit b7df8ac

Browse files
authored
Merge pull request #190 from davidcaste/fix/deployment_app_version_label
Use image.tag for app.kubernetes.io/version label if defined
2 parents 59fa883 + 5e32886 commit b7df8ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/coredns/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.37.1
3+
version: 1.37.2
44
appVersion: 1.11.4
55
home: https://coredns.io
66
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
@@ -19,5 +19,5 @@ maintainers:
1919
type: application
2020
annotations:
2121
artifacthub.io/changes: |
22-
- kind: changed
23-
description: Fixed typo in readme
22+
- kind: fixed
23+
description: Use image.tag for app.kubernetes.io/version label if defined

charts/coredns/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: {{ default (include "coredns.fullname" .) .Values.deployment.name }}
77
namespace: {{ .Release.Namespace }}
88
labels: {{- include "coredns.labels" . | nindent 4 }}
9-
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
9+
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
1010
{{- if .Values.customLabels }}
1111
{{ toYaml .Values.customLabels | indent 4 }}
1212
{{- end }}

0 commit comments

Comments
 (0)