Skip to content

Commit ad9329b

Browse files
committed
feat: add proxyVarsFromSecret value
Signed-off-by: Zadkiel AHARONIAN <[email protected]>
1 parent e4d9dd6 commit ad9329b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.4.1
2+
version: 7.5.0
33
apiVersion: v2
44
appVersion: 7.6.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -34,8 +34,8 @@ maintainers:
3434
kubeVersion: ">=1.9.0-0"
3535
annotations:
3636
artifacthub.io/changes: |
37-
- kind: changed
38-
description: Fix link in readme to existingSecret needed fields
37+
- kind: added
38+
description: Add proxyVarsFromSecret value
3939
links:
4040
- name: Github PR
41-
url: https://github.com/oauth2-proxy/manifests/pull/193
41+
url: https://github.com/oauth2-proxy/manifests/pull/196

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ spec:
146146
lifecycle:
147147
{{ toYaml .Values.lifecycle | indent 10 }}
148148
{{- end }}
149+
{{- with .Values.proxyVarsFromSecret }}
150+
envFrom:
151+
- secretRef:
152+
name: {{ . }}
153+
{{- end }}
149154
env:
150155
{{- if .Values.proxyVarsAsSecrets }}
151156
- name: OAUTH2_PROXY_CLIENT_ID

helm/oauth2-proxy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ nodeSelector: {}
221221
# Whether to use secrets instead of environment values for setting up OAUTH2_PROXY variables
222222
proxyVarsAsSecrets: true
223223

224+
# Import environment variables from an existing secret
225+
# proxyVarsFromSecret: my-secret-name
226+
224227
# Configure Kubernetes liveness and readiness probes.
225228
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
226229
# Disable both when deploying with Istio 1.0 mTLS. https://istio.io/help/faq/security/#k8s-health-checks

0 commit comments

Comments
 (0)