{{- if not (eq .Values.global.image.createPullSecret.dockerconfigjson "") }} --- apiVersion: v1 kind: Secret metadata: name: ampint-docker-artifactory type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ required "a valid dockerconfigjson is required for the secret ampint-docker-artifactory" .Values.global.image.createPullSecret.dockerconfigjson }} {{- end }}