Skip to content

Commit

Permalink
feat: add proxyVarsFromSecret value
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z committed Apr 9, 2024
1 parent e4d9dd6 commit a7a3dd1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.4.1
version: 7.5.0
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -34,8 +34,8 @@ maintainers:
kubeVersion: ">=1.9.0-0"
annotations:
artifacthub.io/changes: |
- kind: changed
description: Fix link in readme to existingSecret needed fields
- kind: added
description: Add proxyVarsFromSecret value
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/193
url: https://github.com/oauth2-proxy/manifests/pull/196
5 changes: 5 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ spec:
lifecycle:
{{ toYaml .Values.lifecycle | indent 10 }}
{{- end }}
{{- with .Values.proxyVarsFromSecret }}
envFrom:
- secretRef:
name: {{ . }}
{{- end }}
env:
{{- if .Values.proxyVarsAsSecrets }}
- name: OAUTH2_PROXY_CLIENT_ID
Expand Down
3 changes: 3 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ nodeSelector: {}
# Whether to use secrets instead of environment values for setting up OAUTH2_PROXY variables
proxyVarsAsSecrets: true

# Import environment variables from an existing secret
# proxyVarsFromSecret: ""

# Configure Kubernetes liveness and readiness probes.
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
# Disable both when deploying with Istio 1.0 mTLS. https://istio.io/help/faq/security/#k8s-health-checks
Expand Down

0 comments on commit a7a3dd1

Please sign in to comment.