GHP publish
This commit is contained in:
22
chartmuseum/templates/secret.yaml
Executable file
22
chartmuseum/templates/secret.yaml
Executable file
@@ -0,0 +1,22 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user