github.com/replicatedcom/ship@v0.50.0/integration/init/grafana-with-values/expected/.ship/upstream/templates/secret.yaml (about)

     1  apiVersion: v1
     2  kind: Secret
     3  metadata:
     4    name: {{ template "grafana.fullname" . }}
     5    labels:
     6      app: {{ template "grafana.name" . }}
     7      chart: {{ template "grafana.chart" . }}
     8      release: {{ .Release.Name }}
     9      heritage: {{ .Release.Service }}
    10  type: Opaque
    11  data:
    12    admin-user: {{ .Values.adminUser | b64enc | quote }}
    13    {{- if .Values.adminPassword }}
    14    admin-password: {{ .Values.adminPassword | b64enc | quote }}
    15    {{- else }}
    16    admin-password: {{ randAlphaNum 40 | b64enc | quote }}
    17    {{- end }}
    18    {{- if not .Values.ldap.existingSecret }}
    19    ldap-toml: {{ .Values.ldap.config | b64enc | quote }}
    20    {{- end }}