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.
13 lines
415 B
13 lines
415 B
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "sapl.fullname" . }}-secretkey
|
|
labels:
|
|
{{- include "sapl.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
{{- if .Release.IsUpgrade }}
|
|
secret.key: {{ index (lookup "v1" "Secret" .Release.Namespace (printf "%s-secretkey" (include "sapl.fullname" .))).data "secret.key" }}
|
|
{{ else }} # install operation
|
|
secret.key: {{ randAscii 50 | b64enc }}
|
|
{{ end }}
|