23 lines
548 B
YAML
23 lines
548 B
YAML
|
{{- if not .Values.env.existingSecret -}}
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: {{ include "chartmuseum.fullname" . }}
|
||
|
labels:
|
||
|
{{- if .Values.secret.labels }}
|
||
|
{{ toYaml .Values.secret.labels | indent 4 }}
|
||
|
{{- end }}
|
||
|
{{ include "chartmuseum.labels.standard" . | indent 4 }}
|
||
|
type: Opaque
|
||
|
data:
|
||
|
{{- range $name, $value := .Values.env.secret }}
|
||
|
{{- if not (empty $value) }}
|
||
|
{{- if eq $name "GOOGLE_CREDENTIALS_JSON" }}
|
||
|
{{ $name }}: {{ $value }}
|
||
|
{{- else }}
|
||
|
{{ $name }}: {{ $value | b64enc }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|