{{- if and (not .Values.artifactory.persistence.customBinarystoreXmlSecret) (not .Values.artifactory.unifiedSecretInstallation) }} kind: Secret apiVersion: v1 metadata: name: {{ template "artifactory-ha.fullname" . }}-binarystore labels: app: {{ template "artifactory-ha.name" . }} chart: {{ template "artifactory-ha.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} stringData: binarystore.xml: |- {{- if .Values.artifactory.persistence.binarystoreXml }} {{ tpl .Values.artifactory.persistence.binarystoreXml . | indent 4 }} {{- else }} {{ tpl ( .Files.Get "files/binarystore.xml" ) . | indent 4 }} {{- end }} {{- end }}