
{{- if .Values.security.enabled -}}
apiVersion: v1
kind: Secret
metadata:
  name: grafana
  namespace: {{ .Release.Namespace }}
  labels:
    app: grafana
type: Opaque
data:
  username: {{ .Values.security.adminUser | b64enc | quote }}
  password: {{ .Values.security.adminPassword | b64enc | quote }}
{{- end -}}
