mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
17 lines
428 B
YAML
17 lines
428 B
YAML
{{- define "template.secret" -}}
|
|
{{- if and .Values.secrets (not .Values.vault.enabled) }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "template.fullname" . }}
|
|
labels:
|
|
{{- include "template.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- include "template.annotations" . | nindent 4 }}
|
|
data:
|
|
{{- range $key, $value := .Values.secrets }}
|
|
{{ $key }}: {{ $value | b64enc }}
|
|
{{- end}}
|
|
{{- end }}
|
|
{{- end }}
|