Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 3a9e415

Browse files
authored
Merge pull request #98 from dcherman/fix/chart
Fix a couple bugs in the helm chart
2 parents 5922abb + d6b2815 commit 3a9e415

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

deploy/charts/kube-oidc-proxy/templates/secret_config.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ data:
66
oidc.issuer-url: {{ .Values.oidc.issuerUrl | b64enc }}
77
oidc.username-claim: {{ .Values.oidc.usernameClaim | b64enc }}
88
oidc.client-id: {{ .Values.oidc.clientId | b64enc }}
9-
oidc.username-prefix: {{ .Values.oidc.usernamePrefix | default "" | b64enc }}
10-
oidc.groups-claim: {{ .Values.oidc.groupsClaim | default "" | b64enc }}
11-
oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | default "" | b64enc }}
12-
oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | default "" | b64enc }}
9+
{{- if .Values.oidc.usernamePrefix }}
10+
oidc.username-prefix: {{ .Values.oidc.usernamePrefix | b64enc }}
11+
{{- end }}
12+
{{- if .Values.oidc.groupsClaim }}
13+
oidc.groups-claim: {{ .Values.oidc.groupsClaim | b64enc }}
14+
{{- end }}
15+
{{- if .Values.oidc.groupsPrefix }}
16+
oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | b64enc }}
17+
{{- end }}
18+
{{- if .Values.oidc.signingAlgs }}
19+
oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | b64enc }}
20+
{{- end }}
21+
{{ if .Values.oidc.requiredClaims }}
1322
oidc.required-claims: {{ include "requiredClaims" . | b64enc }}
14-
api-audiences: {{ join "," .Values.oidc.apiAudiences | default "" | b64enc }}
23+
{{- end }}
24+
{{- if .Values.oidc.apiAudiences -}}
25+
api-audiences: {{ join "," .Values.oidc.apiAudiences | b64enc }}
26+
{{- end }}
1527
kind: Secret
1628
metadata:
1729
name: {{ include "kube-oidc-proxy.fullname" . }}-config

deploy/charts/kube-oidc-proxy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ oidc:
3131
issuerUrl: ""
3232
usernameClaim: ""
3333

34-
# Base64 encoded value of CA cert that will verify TLS connection to
34+
# PEM encoded value of CA cert that will verify TLS connection to
3535
# OIDC issuer URL. If not provided default hosts root CA's will be used.
3636
caPEM:
3737

0 commit comments

Comments
 (0)