You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
804 B
29 lines
804 B
{{- range $nameSuffix, $values := .Values.secrets }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "keycloak.fullname" $ }}-{{ $nameSuffix }}
|
|
{{- with $values.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "keycloak.labels" $ | nindent 4 }}
|
|
{{- range $key, $value := $values.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
type: {{ default "Opaque" $values.type }}
|
|
{{- with $values.data }}
|
|
data:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- with $values.stringData }}
|
|
stringData:
|
|
{{- range $key, $value := . }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|