{{ if .Values.global.imageCredentials }} apiVersion: v1 kind: Secret metadata: labels: {{- include "ezd-crd.labels" . | nindent 4 }} name: {{ .Values.global.imageCredentials.name }} type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ include "ezd-crd.imagePullSecret" . }} {{- end }}