[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:
David Wang
2018-01-14 08:09:28 -08:00
committed by k8s-ci-robot
parent d2869e88e0
commit 30ca8eff04
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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