templates/deployment.yaml aktualisiert
This commit is contained in:
@@ -85,14 +85,18 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: LB_DB_USER_PWD
|
- name: LB_DB_USER_PWD
|
||||||
|
{{- if eq .Values.mariadb.enabled true }}
|
||||||
|
value: {{ .Values.mariadb.userDatabase.password.value }}
|
||||||
|
{{- else }}
|
||||||
|
{{- if .Values.externalDatabase.existingSecretConfig.passwordField }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "librebooking.databaseSecretName" . }}
|
name: {{ include "librebooking.databaseSecretName" . }}
|
||||||
{{- if .Values.mariadb.enabled }}
|
|
||||||
key: mariadb-password
|
|
||||||
{{- else }}
|
|
||||||
key: {{ .Values.externalDatabase.existingSecretConfig.passwordField }}
|
key: {{ .Values.externalDatabase.existingSecretConfig.passwordField }}
|
||||||
{{- end }}
|
{{- else}}
|
||||||
|
value: {{ .Values.externalDatabase.password }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
- name: LB_DB_NAME
|
- name: LB_DB_NAME
|
||||||
{{- if eq .Values.mariadb.enabled true }}
|
{{- if eq .Values.mariadb.enabled true }}
|
||||||
value: {{ .Values.mariadb.userDatabase.name.value }}
|
value: {{ .Values.mariadb.userDatabase.name.value }}
|
||||||
|
|||||||
Reference in New Issue
Block a user