templates/secret.yaml を更新
This commit is contained in:
21
templates/secret.yaml
Normal file
21
templates/secret.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- if and (not .Values.phpmyadmin.existingSecret) .Values.phpmyadmin.blowfishSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "phpmyadmin-nginx.fullname" . }}
|
||||
labels:
|
||||
{{- include "phpmyadmin-nginx.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
blowfish-secret: {{ .Values.phpmyadmin.blowfishSecret | b64enc | quote }}
|
||||
{{- else if not .Values.phpmyadmin.existingSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "phpmyadmin-nginx.fullname" . }}
|
||||
labels:
|
||||
{{- include "phpmyadmin-nginx.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
blowfish-secret: {{ randAlphaNum 32 | b64enc | quote }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user