Skip to content

Commit ca0ef13

Browse files
Merge pull request #224 from garryod/main
Support templating of `extraVolumes`
2 parents 1c88181 + 3fc4d50 commit ca0ef13

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.7.9
2+
version: 7.7.10
33
apiVersion: v2
44
appVersion: 7.6.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/ci/tpl-values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ pass_authorization_header: "true"
1919

2020
extraArgs:
2121
pass-authorization-header: "{{ $.Values.pass_authorization_header }}"
22+
23+
extraVolumes:
24+
- name: "{{ $.Release.Name }}-secret"
25+
secret:
26+
secretName: "{{ .Release.Name }}-secret"
27+
items:
28+
- key: secret
29+
path: secret

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ spec:
369369
{{- end }}
370370
{{- end }}
371371
{{- if ne (len .Values.extraVolumes) 0 }}
372-
{{ toYaml .Values.extraVolumes | indent 6 }}
372+
{{ tpl (toYaml .Values.extraVolumes) . | indent 6 }}
373373
{{- end }}
374374
{{- if and (.Values.authenticatedEmailsFile.enabled) (eq .Values.authenticatedEmailsFile.persistence "configmap") }}
375375
- configMap:

0 commit comments

Comments
 (0)