layer0-web: try another syntax

This commit is contained in:
Micke Nordin 2023-06-22 09:55:24 +02:00
parent b5cc15a319
commit 1739cdd631
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -44,11 +44,11 @@ data:
{{- $upper_name := $name | upper | replace "." "_" -}} {{- $upper_name := $name | upper | replace "." "_" -}}
{{- $client_id := printf "%s_%s" $upper_name "OAUTH_CLIENT_ID" }} {{- $client_id := printf "%s_%s" $upper_name "OAUTH_CLIENT_ID" }}
{{- $client_secret := printf "%s_%s" $upper_name "OAUTH_CLIENT_SECRET" }} {{- $client_secret := printf "%s_%s" $upper_name "OAUTH_CLIENT_SECRET" }}
{{- if hasKey $.Values.environment $client_id }} {{- if hasKey .Values.environment $client_id }}
{{ set $domain "OAUTH_CLIENT_ID" (get $.Values.environment $client_id) }} {{ set $domain "OAUTH_CLIENT_ID" (get .Values.environment $client_id) }}
{{- end }} {{- end }}
{{- if hasKey $.Values.environment $client_secret }} {{- if hasKey .Values.environment $client_secret }}
{{ set $domain "OAUTH_CLIENT_SECRET" (get $.Values.environment $client_secret) }} {{ set $domain "OAUTH_CLIENT_SECRET" (get .Values.environment $client_secret) }}
{{- end }} {{- end }}
{{- end }} {{- end }}
apiVersion: v1 apiVersion: v1