diff --git a/charts/kuberpult/templates/frontend-service.yaml b/charts/kuberpult/templates/frontend-service.yaml index 109737856..78b06c9aa 100644 --- a/charts/kuberpult/templates/frontend-service.yaml +++ b/charts/kuberpult/templates/frontend-service.yaml @@ -157,7 +157,7 @@ spec: - name: KUBERPULT_DEX_RBAC_POLICY_PATH value: /kuberpult-rbac/policy.csv - name: KUBERPULT_DEX_USE_CLUSTER_INTERNAL_COMMUNICATION - values: "{{ .Values.auth.dexAuth.useClusterInternalCommunicationToDex }}" + value: "{{ .Values.auth.dexAuth.useClusterInternalCommunicationToDex }}" {{- end }} {{- if .Values.pgp.keyRing }} - name: KUBERPULT_PGP_KEY_RING_PATH diff --git a/charts/kuberpult/tests/charts_test.go b/charts/kuberpult/tests/charts_test.go index 453b10d7d..6ba16bf6e 100644 --- a/charts/kuberpult/tests/charts_test.go +++ b/charts/kuberpult/tests/charts_test.go @@ -564,6 +564,35 @@ auth: }, ExpectedMissing: []core.EnvVar{}, }, + { + Name: "Test KUBERPULT_DEX_USE_CLUSTER_INTERNAL_COMMUNICATION", + Values: ` +git: + url: "testURL" +ingress: + domainName: "kuberpult-example.com" +auth: + dexAuth: + enabled: true + useClusterInternalCommunicationToDex: true + policy_csv: "testing" +`, + ExpectedEnvs: []core.EnvVar{ + { + Name: "KUBERPULT_DEX_ENABLED", + Value: "true", + }, + { + Name: "KUBERPULT_DEX_RBAC_POLICY_PATH", + Value: "/kuberpult-rbac/policy.csv", + }, + { + Name: "KUBERPULT_DEX_USE_CLUSTER_INTERNAL_COMMUNICATION", + Value: "true", + }, + }, + ExpectedMissing: []core.EnvVar{}, + }, } for _, tc := range tcs {