# grafana_charts_license-secret.yaml
{{- if not .Values.license.external }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ .Values.license.secretName }}
  labels:
    app: {{ .Values.license.secretName }}
    chart: {{ template "enterprise-metrics.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
data:
  license.jwt: {{ .Values.license.contents | b64enc }}
{{- end }}