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

Commit 9724e2f

Browse files
committed
Adds extra header options to Helm chart
Signed-off-by: JoshVanL <[email protected]>
1 parent 9dc9e08 commit 9724e2f

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

deploy/charts/kube-oidc-proxy/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ Required claims serialized to CLI argument
5555
{{- end -}}
5656
{{ join "," $local }}
5757
{{- end -}}
58-
{{- end -}}
58+
{{- end -}}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ spec:
6868
- "--token-passthrough-audiences={{ join "," .Values.tokenPassthrough.audiences }}"
6969
{{ end }}
7070
{{ end }}
71+
{{- if .Values.extraImpersonationHeaders.clientIP }}
72+
- "--extra-user-header-client-ip"
73+
{{ end }}
74+
{{- if .Values.extraImpersonationHeaders.headers }}
75+
- "--extra-user-headers={{ .Values.extraImpersonationHeaders.headers }}"
76+
{{ end }}
7177
resources:
7278
{{- toYaml .Values.resources | nindent 12 }}
7379
env:

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ tokenPassthrough:
5454
enabled: false
5555
audiences: []
5656

57+
# To add extra impersonation headers
58+
# https://github.com/jetstack/kube-oidc-proxy/blob/master/docs/tasks/extra-impersonation-headers.md
59+
extraImpersonationHeaders:
60+
clientIP: false
61+
headers: #{}
62+
#headers: key1=foo,key2=bar,key1=bar
63+
64+
5765
ingress:
5866
enabled: false
5967
annotations: {}

0 commit comments

Comments
 (0)