Skip to content

Commit

Permalink
[helm] Add global.imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Aug 8, 2024
1 parent 1ceaf79 commit 635b6bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
{{- if not (quote .Values.automountServiceAccountToken | empty) }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- end }}
{{- with .Values.imagePullSecrets }}
{{- with (concat .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

global:
# -- Global image pull secrets.
imagePullSecrets: []

image:
# -- Image repository for the `external-dns` container.
repository: registry.k8s.io/external-dns/external-dns
Expand Down

0 comments on commit 635b6bc

Please sign in to comment.