cleanup main helpers
Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz>
This commit is contained in:
@@ -4,43 +4,3 @@ Return the proper image name (for the init container volume-permissions image)
|
|||||||
{{- define "shuffle.volumePermissions.image" -}}
|
{{- define "shuffle.volumePermissions.image" -}}
|
||||||
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global "chart" .Chart ) -}}
|
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global "chart" .Chart ) -}}
|
||||||
{{- end -}}
|
{{- 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 -}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user