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