Skip to content

Commit

Permalink
Merge pull request #224 from garryod/main
Browse files Browse the repository at this point in the history
Support templating of `extraVolumes`
  • Loading branch information
pierluigilenoci authored Aug 23, 2024
2 parents 1c88181 + 3fc4d50 commit ca0ef13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.7.9
version: 7.7.10
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down
8 changes: 8 additions & 0 deletions helm/oauth2-proxy/ci/tpl-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ pass_authorization_header: "true"

extraArgs:
pass-authorization-header: "{{ $.Values.pass_authorization_header }}"

extraVolumes:
- name: "{{ $.Release.Name }}-secret"
secret:
secretName: "{{ .Release.Name }}-secret"
items:
- key: secret
path: secret
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ spec:
{{- end }}
{{- end }}
{{- if ne (len .Values.extraVolumes) 0 }}
{{ toYaml .Values.extraVolumes | indent 6 }}
{{ tpl (toYaml .Values.extraVolumes) . | indent 6 }}
{{- end }}
{{- if and (.Values.authenticatedEmailsFile.enabled) (eq .Values.authenticatedEmailsFile.persistence "configmap") }}
- configMap:
Expand Down

0 comments on commit ca0ef13

Please sign in to comment.