{{- if .Values.imageCredentials.enabled }} {{- if not .Values.imageCredentials.existingSecret }} apiVersion: v1 kind: Secret metadata: name: {{ include "clearmlServing.fullname" . }}-ark type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ template "imagePullSecret" . }} {{- end }} {{- end }}