layer0-web: Revert change to config map, the app will take values from environment instead

This commit is contained in:
Micke Nordin 2023-06-22 15:50:50 +02:00
parent 2a93db0bcc
commit 902cba597e
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -39,18 +39,6 @@ data:
{{- end }}
PROMETHEUS_MULTIPROC_DIR: "/tmp"
---
{{- range $domain := $domains }}
{{- $name := $domain.name -}}
{{- $upper_name := $name | upper | replace "." "_" -}}
{{- $client_id := printf "%s_%s" $upper_name "OAUTH_CLIENT_ID" }}
{{- $client_secret := printf "%s_%s" $upper_name "OAUTH_CLIENT_SECRET" }}
{{- if hasKey $.Values.environment $client_id }}
{{- $_ := set $domain "OAUTH_CLIENT_ID" (get $.Values.environment $client_id) }}
{{- end }}
{{- if hasKey $.Values.environment $client_secret }}
{{- $_ := set $domain "OAUTH_CLIENT_SECRET" (get $.Values.environment $client_secret) }}
{{- end }}
{{- end }}
apiVersion: v1
kind: ConfigMap
metadata: