{{- with .Values.artifactory.license.licenseKey }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "artifactory-ha.fullname" $ }}-license
  labels:
    app: {{ template "artifactory-ha.name" $ }}
    chart: {{ template "artifactory-ha.chart" $ }}
    heritage: {{ $.Release.Service }}
    release: {{ $.Release.Name }}
type: Opaque
data:
  artifactory.lic: {{ . | b64enc | quote }}
{{- end }}