{{- if .Values.enterprise.enabled -}}
{{- if not .Values.license.external }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ tpl .Values.license.secretName . }}
  labels:
    {{- include "mimir.labels" (dict "ctx" .) | nindent 4 }}
  namespace: {{ .Release.Namespace | quote }}
data:
  license.jwt: {{ .Values.license.contents | b64enc }}
{{- end -}}
{{- end -}}
