6161 - name : POSTGRES_USER
6262 valueFrom :
6363 secretKeyRef :
64- {{ if not .Values.existingSecret - }}
64+ {{- if not .Values.existingSecret }}
6565 name : {{ include "weblate.fullname" . }}
6666 {{- else }}
6767 name : {{ .Values.existingSecret }}
@@ -70,10 +70,10 @@ spec:
7070 - name : POSTGRES_PASSWORD
7171 valueFrom :
7272 secretKeyRef :
73- {{ if and (not .Values.existingSecret) (not .Values.postgresql.auth.existingSecret) - }}
73+ {{- if and (not .Values.existingSecret) (not .Values.postgresql.auth.existingSecret) }}
7474 name : {{ include "weblate.fullname" . }}
7575 key : postgresql-password
76- {{ else if and (not .Values.existingSecret) (.Values.postgresql.auth.existingSecret) - }}
76+ {{- else if and (not .Values.existingSecret) (.Values.postgresql.auth.existingSecret) }}
7777 name : {{ .Values.postgresql.auth.existingSecret }}
7878 key : {{ .Values.postgresql.auth.secretKeys.userPasswordKey }}
7979 {{- else }}
@@ -87,13 +87,13 @@ spec:
8787 - name : REDIS_PASSWORD
8888 valueFrom :
8989 secretKeyRef :
90- {{ if and (not .Values.existingSecret) (not .Values.redis.auth.existingSecret) - }}
90+ {{- if and (not .Values.existingSecret) (not .Values.redis.auth.existingSecret) }}
9191 name : {{ include "weblate.fullname" . }}
9292 key : redis-password
93- {{ else if and (not .Values.existingSecret) (.Values.redis.auth.existingSecret) - }}
93+ {{- else if and (not .Values.existingSecret) (.Values.redis.auth.existingSecret) }}
9494 name : {{ .Values.redis.auth.existingSecret }}
9595 key : {{ .Values.redis.auth.existingSecretPasswordKey }}
96- {{ else }}
96+ {{- else }}
9797 name : {{ .Values.existingSecret }}
9898 key : redis-password
9999 {{- end }}
@@ -102,7 +102,7 @@ spec:
102102 - name : WEBLATE_ADMIN_NAME
103103 valueFrom :
104104 secretKeyRef :
105- {{ if not .Values.existingSecret - }}
105+ {{- if not .Values.existingSecret }}
106106 name : {{ include "weblate.fullname" . }}
107107 {{- else }}
108108 name : {{ .Values.existingSecret }}
@@ -111,7 +111,7 @@ spec:
111111 - name : WEBLATE_ADMIN_PASSWORD
112112 valueFrom :
113113 secretKeyRef :
114- {{ if not .Values.existingSecret - }}
114+ {{- if not .Values.existingSecret }}
115115 name : {{ include "weblate.fullname" . }}
116116 {{- else }}
117117 name : {{ .Values.existingSecret }}
@@ -132,7 +132,7 @@ spec:
132132 - name : WEBLATE_EMAIL_HOST_USER
133133 valueFrom :
134134 secretKeyRef :
135- {{ if not .Values.existingSecret - }}
135+ {{- if not .Values.existingSecret }}
136136 name : {{ include "weblate.fullname" . }}
137137 {{- else }}
138138 name : {{ .Values.existingSecret }}
@@ -141,7 +141,7 @@ spec:
141141 - name : WEBLATE_EMAIL_HOST_PASSWORD
142142 valueFrom :
143143 secretKeyRef :
144- {{ if not .Values.existingSecret - }}
144+ {{- if not .Values.existingSecret }}
145145 name : {{ include "weblate.fullname" . }}
146146 {{- else }}
147147 name : {{ .Values.existingSecret }}
0 commit comments