Skip to content

Commit d1925b1

Browse files
mikebryantmrueg
authored andcommitted
fix: Add support for customLabels to ServiceAccount
Signed-off-by: Mike Bryant <[email protected]>
1 parent 053e0e1 commit d1925b1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

charts/coredns/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.43.0
3+
version: 1.43.1
44
appVersion: 1.12.2
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: added
23-
description: Added support for initContainers in the deployment.
22+
- kind: changed
23+
description: ServiceAccount now applies the `customLabels` field if set.

charts/coredns/templates/serviceaccount.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: {{ template "coredns.serviceAccountName" . }}
66
namespace: {{ .Release.Namespace }}
77
labels: {{- include "coredns.labels" . | nindent 4 }}
8+
{{- if .Values.customLabels }}
9+
{{ toYaml .Values.customLabels | indent 4 }}
10+
{{- end }}
811
{{- if or .Values.serviceAccount.annotations .Values.customAnnotations }}
912
annotations:
1013
{{- if .Values.customAnnotations }}

0 commit comments

Comments
 (0)