Skip to content

Commit e0a04bf

Browse files
authored
Merge pull request #202 from martinohmann/image-pull-secrets
fix: align imagePullSecrets in Deployment and ServiceAccount
2 parents 80859f8 + bd188b7 commit e0a04bf

5 files changed

+7
-11
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.39.0
3+
version: 1.39.1
44
appVersion: 1.12.0
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: Upgrade to CoreDNS 1.12.0
22+
- kind: fixed
23+
description: align imagePullSecrets in Deployment and ServiceAccount

charts/coredns/templates/deployment-autoscaler.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ spec:
6060
nodeSelector:
6161
{{ toYaml .Values.autoscaler.nodeSelector | indent 8 }}
6262
{{- end }}
63-
{{- if not (empty .Values.autoscaler.image.pullSecrets) }}
63+
{{- if .Values.autoscaler.image.pullSecrets }}
6464
imagePullSecrets:
6565
{{ toYaml .Values.autoscaler.image.pullSecrets | indent 8 }}
6666
{{- end }}

charts/coredns/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ spec:
8888
nodeSelector:
8989
{{ toYaml .Values.nodeSelector | indent 8 }}
9090
{{- end }}
91-
{{- if not (empty .Values.image.pullSecrets) }}
91+
{{- if .Values.image.pullSecrets }}
9292
imagePullSecrets:
9393
{{ toYaml .Values.image.pullSecrets | indent 8 }}
9494
{{- end }}

charts/coredns/templates/serviceaccount-autoscaler.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ metadata:
1515
{{- end }}
1616
{{- if .Values.autoscaler.image.pullSecrets }}
1717
imagePullSecrets:
18-
{{- range .Values.autoscaler.image.pullSecrets }}
19-
- name: {{ . }}
20-
{{- end }}
18+
{{ toYaml .Values.autoscaler.image.pullSecrets | indent 2 }}
2119
{{- end }}
2220
{{- end }}

charts/coredns/templates/serviceaccount.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ metadata:
1616
{{- end }}
1717
{{- if .Values.image.pullSecrets }}
1818
imagePullSecrets:
19-
{{- range .Values.image.pullSecrets }}
20-
- name: {{ . }}
21-
{{- end }}
19+
{{ toYaml .Values.image.pullSecrets | indent 2 }}
2220
{{- end }}
2321
{{- end }}

0 commit comments

Comments
 (0)