Skip to content

Commit 6e35e2f

Browse files
committed
Fix #35726: replace redis-sentinel
1 parent 9c0ad05 commit 6e35e2f

File tree

13 files changed

+967
-1543
lines changed

13 files changed

+967
-1543
lines changed

docs/deployment/bases/redis-sentinel/chart-src/build.yaml

Lines changed: 893 additions & 624 deletions
Large diffs are not rendered by default.

docs/deployment/bases/redis-sentinel/chart-src/kustomization.yml

Lines changed: 65 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,79 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
helmCharts:
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

1819
patches:
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

docs/deployment/bases/redis-sentinel/kustomization.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- resources/redis-sentinel.yaml
5+
- chart-src/build.yaml
66
- resources/redis.pdb.yaml
7-
8-
patches:
9-
- path: patches/redis-node.statefulset.yaml
10-
11-
images:
12-
- name: docker.io/bitnami/redis-sentinel
13-
newName: openanalytics/redis-sentinel
14-
- name: docker.io/bitnami/redis
15-
newName: openanalytics/redis

docs/deployment/bases/redis-sentinel/patches/redis-node.statefulset.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)