|
1 | 1 | apiVersion: v1
|
| 2 | +kind: Secret |
| 3 | +metadata: |
| 4 | + name: {{ include "kube-oidc-proxy.fullname" . }}-config |
| 5 | + labels: |
| 6 | + {{ include "kube-oidc-proxy.labels" . | indent 4 }} |
| 7 | +type: Opaque |
2 | 8 | data:
|
3 |
| - {{ if .Values.oidc.caPEM }} |
| 9 | + {{- if .Values.oidc.caPEM }} |
4 | 10 | oidc.ca-pem: {{ .Values.oidc.caPEM | default "" | b64enc }}
|
5 |
| - {{ end }} |
| 11 | + {{- end }} |
| 12 | + |
| 13 | + {{- if .Values.oidc.issuerUrl }} |
6 | 14 | oidc.issuer-url: {{ .Values.oidc.issuerUrl | b64enc }}
|
7 |
| - oidc.username-claim: {{ .Values.oidc.usernameClaim | b64enc }} |
| 15 | + {{- end }} |
| 16 | + |
| 17 | + {{- if .Values.oidc.usernameClaim }} |
| 18 | + oidc.username-claim: {{ .Values.oidc.usernameClaim | default "" | b64enc }} |
| 19 | + {{- end }} |
| 20 | + |
| 21 | + {{- if .Values.oidc.clientId }} |
8 | 22 | oidc.client-id: {{ .Values.oidc.clientId | b64enc }}
|
| 23 | + {{- end }} |
| 24 | + |
9 | 25 | {{- if .Values.oidc.usernamePrefix }}
|
10 |
| - oidc.username-prefix: {{ .Values.oidc.usernamePrefix | b64enc }} |
| 26 | + oidc.username-prefix: {{ .Values.oidc.usernamePrefix | default "" | b64enc }} |
11 | 27 | {{- end }}
|
| 28 | + |
12 | 29 | {{- if .Values.oidc.groupsClaim }}
|
13 |
| - oidc.groups-claim: {{ .Values.oidc.groupsClaim | b64enc }} |
| 30 | + oidc.groups-claim: {{ .Values.oidc.groupsClaim | default "" | b64enc }} |
14 | 31 | {{- end }}
|
| 32 | + |
15 | 33 | {{- if .Values.oidc.groupsPrefix }}
|
16 |
| - oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | b64enc }} |
| 34 | + oidc.groups-prefix: {{ .Values.oidc.groupsPrefix | default "" | b64enc }} |
17 | 35 | {{- end }}
|
| 36 | + |
18 | 37 | {{- if .Values.oidc.signingAlgs }}
|
19 |
| - oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | b64enc }} |
| 38 | + oidc.signing-algs: {{ join "," .Values.oidc.signingAlgs | default "" | b64enc }} |
20 | 39 | {{- end }}
|
21 |
| - {{ if .Values.oidc.requiredClaims }} |
| 40 | + |
| 41 | + {{- if .Values.oidc.requiredClaims }} |
22 | 42 | oidc.required-claims: {{ include "requiredClaims" . | b64enc }}
|
23 | 43 | {{- end }}
|
24 |
| -kind: Secret |
25 |
| -metadata: |
26 |
| - name: {{ include "kube-oidc-proxy.fullname" . }}-config |
27 |
| - labels: |
28 |
| -{{ include "kube-oidc-proxy.labels" . | indent 4 }} |
29 |
| -type: Opaque |
|
0 commit comments