helmfile.yaml
1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
bases:
- ../common/environments.yaml
---
releases:
- name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
namespace: oauth2-proxy
chart: charts/oauth2-proxy
condition: oauth2_proxy.enabled
values:
- nameSuffix: -{{ $.Values.oauth2_proxy.name }}
- {{ .Values.oauth2_proxy.config | toYaml | nindent 8 }}
jsonPatches:
- target:
version: v1
group: apps
kind: Deployment
namespace: oauth2-proxy
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
patch:
- op: replace
path: /metadata/labels/app
value: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
- op: replace
path: /spec/selector/matchLabels/app
value: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
- op: replace
path: /spec/template/metadata/labels/app
value: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
- target:
version: v1
kind: Service
namespace: oauth2-proxy
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
patch:
- op: replace
path: /spec/selector/app
value: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
strategicMergePatches:
- apiVersion: v1
kind: ConfigMap
metadata:
namespace: oauth2-proxy
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
data:
{{ $.Values.oauth2_proxy.config | toYaml | nindent 12 }}
- apiVersion: v1
kind: Secret
metadata:
namespace: oauth2-proxy
name: oauth2-proxy-{{ $.Values.oauth2_proxy.name }}
data:
{{ $.Values.oauth2_proxy.secret | toYaml | nindent 12 }}