4cb6ddca by Adam Heath

Add configurable namespace support for oauth2-proxy.

1 parent ca571919
oauth2_proxy:
enabled: true
namespace: default
name: ""
config:
OAUTH2_PROXY_UPSTREAMS: ""
......
......@@ -4,7 +4,7 @@ bases:
---
releases:
- name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
namespace: oauth2-proxy
namespace: {{ $.Values.oauth2_proxy.namespace }}
chart: charts/oauth2-proxy
condition: oauth2_proxy.enabled
values:
......@@ -15,7 +15,7 @@ releases:
version: v1
group: apps
kind: Deployment
namespace: oauth2-proxy
namespace: {{ $.Values.oauth2_proxy.namespace }}
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
patch:
- op: replace
......@@ -30,7 +30,7 @@ releases:
- target:
version: v1
kind: Service
namespace: oauth2-proxy
namespace: {{ $.Values.oauth2_proxy.namespace }}
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
patch:
- op: replace
......@@ -40,14 +40,14 @@ releases:
- apiVersion: v1
kind: ConfigMap
metadata:
namespace: oauth2-proxy
namespace: {{ $.Values.oauth2_proxy.namespace }}
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
data:
{{ $.Values.oauth2_proxy.config | toYaml | nindent 12 }}
- apiVersion: v1
kind: Secret
metadata:
namespace: oauth2-proxy
namespace: {{ $.Values.oauth2_proxy.namespace }}
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
data:
{{ $.Values.oauth2_proxy.secret | toYaml | nindent 12 }}
......