Skip to content

Commit 8a5342a

Browse files
Fix imagePullSecrets in all charts
Signed-off-by: Thomas Renger <dentaku@wazong.de>
1 parent db626c5 commit 8a5342a

File tree

29 files changed

+44
-68
lines changed

29 files changed

+44
-68
lines changed

charts/azure-janitor/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,6 @@ spec:
8787
{{- with .Values.tolerations }}
8888
tolerations: {{ toYaml . | nindent 8 }}
8989
{{- end }}
90+
{{- if .Values.imagePullSecrets }}
91+
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
92+
{{- end }}

charts/azure-janitor/templates/serviceaccount.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,4 @@ metadata:
1212
{{- if .Values.serviceAccount.annotations }}
1313
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
1414
{{- end }}
15-
{{- if .Values.global.imagePullSecrets }}
16-
imagePullSecrets:
17-
{{ include "azure-janitor.imagePullSecrets" . | trim | indent 2 }}
18-
{{- end }}
1915
{{- end }}

charts/azure-janitor/values.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ containerSecurityContext:
104104

105105
# -- registry secret names as an array
106106
imagePullSecrets: []
107+
# - name: pull-secret-name
107108

108109
service:
109110
type: ClusterIP
@@ -173,6 +174,3 @@ prometheus:
173174
## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
174175
##
175176
labelValueLengthLimit: 0
176-
177-
global:
178-
imagePullSecrets: []

charts/azure-keyvault-exporter/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,6 @@ spec:
8989
{{- with .Values.tolerations }}
9090
tolerations: {{ toYaml . | nindent 8 }}
9191
{{- end }}
92+
{{- if .Values.imagePullSecrets }}
93+
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
94+
{{- end }}

charts/azure-keyvault-exporter/templates/serviceaccount.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,4 @@ metadata:
1212
{{- if .Values.serviceAccount.annotations }}
1313
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
1414
{{- end }}
15-
{{- if .Values.global.imagePullSecrets }}
16-
imagePullSecrets:
17-
{{ include "azure-keyvault-exporter.imagePullSecrets" . | trim | indent 2 }}
18-
{{- end }}
1915
{{- end }}

charts/azure-keyvault-exporter/values.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ containerSecurityContext:
101101

102102
# -- registry secret names as an array
103103
imagePullSecrets: []
104+
# - name: pull-secret-name
104105

105106
service:
106107
type: ClusterIP
@@ -170,6 +171,3 @@ prometheus:
170171
## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
171172
##
172173
labelValueLengthLimit: 0
173-
174-
global:
175-
imagePullSecrets: []

charts/azure-loganalytics-exporter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A Helm chart for azure-loganalytics-exporter
3030
| extraVolumeMounts | list | `[]` | |
3131
| extraVolumes | list | `[]` | |
3232
| fullnameOverride | string | `""` | String to fully override azure-loganalytics-exporter.fullname template |
33-
| global.imagePullSecrets | list | `[]` | registry secret names as an array |
33+
| imagePullSecrets | list | `[]` | registry secret names as an array |
3434
| image.pullPolicy | string | `"IfNotPresent"` | |
3535
| image.registry | string | `"docker.io"` | image registry |
3636
| image.repository | string | `"webdevops/azure-loganalytics-exporter"` | image repository |

charts/azure-loganalytics-exporter/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,6 @@ spec:
108108
{{- with .Values.extraVolumes }}
109109
{{- toYaml . | nindent 8 }}
110110
{{- end }}
111+
{{- if .Values.imagePullSecrets }}
112+
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
113+
{{- end }}

charts/azure-loganalytics-exporter/templates/serviceaccount.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@ metadata:
1414
{{ toYaml . | nindent 4 }}
1515
{{- end }}
1616
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
17-
{{- with .Values.global.imagePullSecrets }}
18-
imagePullSecrets:
19-
{{- toYaml . | nindent 2 }}
20-
{{- end }}
2117
{{- end }}

charts/azure-loganalytics-exporter/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
global:
3-
# -- registry secret names as an array
4-
imagePullSecrets: []
5-
62
# -- String to partially override azure-loganalytics-exporter.fullname template (will maintain the release name)
73
nameOverride: ''
84

@@ -144,6 +140,10 @@ containerSecurityContext:
144140
capabilities:
145141
drop: ["ALL"]
146142

143+
# -- registry secret names as an array
144+
imagePullSecrets: []
145+
# - name: pull-secret-name
146+
147147
service:
148148
type: ClusterIP
149149
port: 8080

0 commit comments

Comments
 (0)