Skip to content

Commit

Permalink
fix: fixing faulty frontend service helm chart (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-crespo-fdc authored May 17, 2024
1 parent 7dc12dd commit 3f0ac40
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kuberpult/templates/frontend-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions charts/kuberpult/tests/charts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3f0ac40

Please sign in to comment.