3cdc77d802
Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz>
47 lines
938 B
Smarty
47 lines
938 B
Smarty
{{/*
|
|
Return the proper image name (for the init container volume-permissions image)
|
|
*/}}
|
|
{{- define "shuffle.volumePermissions.image" -}}
|
|
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global "chart" .Chart ) -}}
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{- if (not (empty $pullSecrets)) -}}
|
|
imagePullSecrets:
|
|
{{- range $pullSecrets | uniq }}
|
|
- name: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- range .Values.global.imagePullSecrets -}}
|
|
{{- if kindIs "map" . -}}
|
|
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" .)) -}}
|
|
{{- else -}}
|
|
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" .)) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- if (not (empty $pullSecrets)) -}}
|
|
imagePullSecrets:
|
|
{{- range $pullSecrets | uniq }}
|
|
- name: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|