Skip to content

Commit

Permalink
update imagepullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs committed Nov 14, 2024
1 parent 26f380e commit 131bf39
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ spec:

# service discovery uses DNS; don't need service env vars
enableServiceLinks: false

{{- with (default .Values.global.image.pullSecretNames .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- range . }}
{{- range . }}
{{- if typeIs "string" . }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- else if typeIsLike "map[string]interface {}" . }}
{{- if hasKey . "name" }}
- name: {{ .name | quote }}
{{- else }}
- {{ . | toYaml | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

{{- with .Values.natsBox.serviceAccount }}
{{- if .enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ spec:

# service discovery uses DNS; don't need service env vars
enableServiceLinks: false
{{- with (default .Values.global.image.pullSecretNames .Values.global.imagePullSecrets) }}

{{- with (default .Values.global.image.pullSecretNames .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- range . }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- range . }}
{{- if typeIs "string" . }}
- name: {{ . | quote }}
{{- else if typeIsLike "map[string]interface {}" . }}
{{- if hasKey . "name" }}
- name: {{ .name | quote }}
{{- else }}
- {{ . | toYaml }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

{{- with .Values.serviceAccount }}
{{- if .enabled }}
Expand Down

0 comments on commit 131bf39

Please sign in to comment.