mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/oauth-proxy] Tweaked oauth-proxy deployment template to accept boolean extraArgs (#3266)
* Tweaked oauth-proxy deployment template to accept boolean extraArgs
* Prior to this commit, values.yaml extraArgs only allowed setting of
`key=value` pairs. However, some oauth2_proxy flags are boolean
flags with only `key` and no `value`. In the example below,
`ssl-insecure-skip-verify` is one such flag.
extraArgs:
provider: "oidc"
ssl-insecure-skip-verify:
cookie-secure: "true"
* This commit allows boolean flags to be added to extraArgs as shown
above by `ssl-insecure-skip-verify`.
* Update Chart.yaml
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: oauth-proxy
|
||||
version: 0.1.3
|
||||
version: 0.1.4
|
||||
appVersion: 2.2
|
||||
description: A reverse proxy that provides authentication with Google, Github or other providers
|
||||
keywords:
|
||||
|
||||
@@ -28,7 +28,11 @@ spec:
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
args:
|
||||
{{- range $key, $value := .Values.extraArgs }}
|
||||
{{- if $value }}
|
||||
- --{{ $key }}={{ $value }}
|
||||
{{- else }}
|
||||
- --{{ $key }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: OAUTH2_PROXY_CLIENT_ID
|
||||
|
||||
Reference in New Issue
Block a user