Skip to content

Commit

Permalink
also use global imagepullsecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ata-no-one committed Jan 15, 2024
1 parent 25a10b7 commit 3f1387a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/gdscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- name: G DATA CyberDefense AG
email: [email protected]
type: application
version: 1.4.3
version: 1.4.4
12 changes: 11 additions & 1 deletion charts/gdscan/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,14 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{- end -}}

{{- end -}}
{{- end -}}

{{ define "gdscan.imagePullSecrets" }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{ end }}
2 changes: 1 addition & 1 deletion charts/gdscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- name: client-tmp
emptyDir: {}
{{- end }}
{{- with .Values.imagePullSecrets }}
{{- with gdscan.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/gdscan/templates/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
labels:
{{- include "gdscan.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
{{- with gdscan.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 3f1387a

Please sign in to comment.