# helm_charts_artifactory-secrets.yaml
{{- if .Values.database.password }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "artifactory.fullname" . }}
  labels:
    app: {{ template "artifactory.name" . }}
    chart: {{ template "artifactory.chart" . }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
type: Opaque
data:
  db-password: {{ .Values.database.password | b64enc | quote }}
{{- end }}