Skip to content

Commit 07f32cf

Browse files
committed
templates: deployment: Fix deployment to add quotes to useAccessToken and PKCE
1 parent b228929 commit 07f32cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/headlamp/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ spec:
212212
{{- end }}
213213
{{- if $oidc.useAccessToken }}
214214
- name: OIDC_USE_ACCESS_TOKEN
215-
value: {{ $oidc.useAccessToken }}
215+
value: {{ $oidc.useAccessToken | quote }}
216216
{{- end }}
217217
{{- if $oidc.usePKCE }}
218218
- name: OIDC_USE_PKCE
219-
value: {{ $oidc.usePKCE }}
219+
value: {{ $oidc.usePKCE | quote }}
220220
{{- end }}
221221
{{- if $oidc.meUserInfoURL }}
222222
- name: ME_USER_INFO_URL

charts/headlamp/tests/expected_templates/oidc-pkce.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
- name: OIDC_SCOPES
108108
value: testScope
109109
- name: OIDC_USE_PKCE
110-
value: true
110+
value: "true"
111111
args:
112112
- "-in-cluster"
113113
- "-plugins-dir=/headlamp/plugins"

0 commit comments

Comments
 (0)