@@ -2,26 +2,79 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22kind : Kustomization
33
44helmCharts :
5- - name : redis
5+ - name : redis-ha
66 namespace : replace_this_namespace
7- releaseName : redis
8- repo : https://charts.bitnami.com/bitnami
7+ releaseName : " "
8+ repo : https://dandydeveloper.github.io/charts
99 valuesInline :
10- global :
11- redis :
12- password : abc
10+ auth : true
11+ redisPassword : abc
12+ hardAntiAffinity : false
1313 sentinel :
14- enabled : true
15- masterSet : shinyproxy
16- version : 17.3.14
14+ password : abc
15+ fullnameOverride : redis
16+ redis :
17+ masterGroupName : shinyproxy
1718
1819patches :
20+ # Patches to make this more compatible with the bitnami chart
1921 - patch : |-
2022 - op: remove
21- path: /metadata/labels/app.kubernetes.io~1managed-by
23+ path: /metadata/namespace
2224 - op: remove
23- path: /metadata/labels/helm.sh~1chart
25+ path: /metadata/labels/chart
2426 - op: remove
25- path: /metadata/namespace
27+ path: /metadata/labels/heritage
28+ - op: remove
29+ path: /metadata/labels/release
2630 target:
2731 name: .*
32+ - patch : |-
33+ - op: remove
34+ path: /spec/template/metadata/labels/release
35+ - op: remove
36+ path: /spec/selector/matchLabels/release
37+ - op: remove
38+ path: /spec/template/spec/affinity/podAntiAffinity/preferredDuringSchedulingIgnoredDuringExecution/0/podAffinityTerm/labelSelector/matchLabels/redis
39+ - op: remove
40+ path: /spec/template/spec/affinity/podAntiAffinity/preferredDuringSchedulingIgnoredDuringExecution/0/podAffinityTerm/labelSelector/matchLabels/release
41+ target:
42+ kind: StatefulSet
43+ - patch : |-
44+ - op: remove
45+ path: /spec/selector/release
46+ target:
47+ kind: Service
48+ - target :
49+ kind : Pod
50+ patch : |-
51+ $patch: delete
52+ kind: Pod
53+ metadata:
54+ name: kustomization
55+ - patch : |-
56+ - op: remove
57+ path: /data/auth
58+ value: redis
59+ - op: add
60+ path: /stringData
61+ value:
62+ redis-password: abc
63+ target:
64+ kind: Secret
65+ name: redis
66+ - patch : |-
67+ - op: replace
68+ path: /spec/template/spec/containers/0/env/0/valueFrom/secretKeyRef/key
69+ value: redis-password
70+ - op: replace
71+ path: /spec/template/spec/containers/1/env/0/valueFrom/secretKeyRef/key
72+ value: redis-password
73+ - op: replace
74+ path: /spec/template/spec/containers/2/env/3/valueFrom/secretKeyRef/key
75+ value: redis-password
76+ - op: replace
77+ path: /spec/template/spec/initContainers/0/env/3/valueFrom/secretKeyRef/key
78+ value: redis-password
79+ target:
80+ kind: StatefulSet
0 commit comments