You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contrib/helm/templates/mapstorage-secret-env.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
{{- if include "workadventure.isBooleanText" .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION }}
1
+
{{- if and .Values.mapstorage.enabled (include "workadventure.isBooleanText" .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION) }}
2
2
{{- $name := .Values.mapstorage.env.AUTHENTICATION_USER | required ".Values.mapstorage.env.AUTHENTICATION_USER is required when .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION is set" }}
3
3
{{- $password := .Values.mapstorage.secretEnv.AUTHENTICATION_PASSWORD | required ".Values.mapstorage.secretEnv.AUTHENTICATION_PASSWORD is required when .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION is set" }}
4
4
{{- end }}
5
5
6
6
{{- $bearerAuthentication := "" }}
7
-
{{- if and .Values.mapstorage.env.ENABLE_BEARER_AUTHENTICATION (not .Values.mapstorage.secretEnv.AUTHENTICATION_TOKEN) }}
7
+
{{- if and .Values.mapstorage.enabled .Values.mapstorage.env.ENABLE_BEARER_AUTHENTICATION (not .Values.mapstorage.secretEnv.AUTHENTICATION_TOKEN) }}
0 commit comments