Skip to content

Commit 1d5bef1

Browse files
committed
fix the test cases
Signed-off-by: Jan Larwig <[email protected]>
1 parent d5904b0 commit 1d5bef1

File tree

4 files changed

+79
-7
lines changed

4 files changed

+79
-7
lines changed

helm/oauth2-proxy/ci/redis-sentinel-array-values.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ sessionStorage:
66
password: "foo"
77
masterName: "mymaster"
88
connectionUrls:
9-
- "redis://oauth2-proxy-redis:26379"
10-
- "redis://oauth2-proxy-redis:26379"
9+
- "redis://oauth2-proxy-redis-announce-0:26379"
10+
- "redis://oauth2-proxy-redis-announce-1:26379"
1111

1212
# provision an instance of the redis-ha sub-chart
1313
redis:
1414
enabled: true
1515
fullnameOverride: oauth2-proxy-redis
16-
replicas: 3
16+
1717
redisPassword: "foo"
18+
1819
redis:
1920
masterGroupName: mymaster
2021

22+
replicas: 2
23+
hardAntiAffinity: false
24+
25+
persistentVolume:
26+
enabled: false
27+
haproxy:
28+
enabled: false
29+
exporter:
30+
enabled: false
31+
2132
initContainers:
2233
waitForRedis:
2334
enabled: true

helm/oauth2-proxy/ci/redis-sentinel-comma-values.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,28 @@ sessionStorage:
55
sentinel:
66
password: "foo"
77
masterName: "mymaster"
8-
connectionUrls: "redis://oauth2-proxy-redis:26379,redis://oauth2-proxy-redis:26379"
8+
connectionUrls: "redis://oauth2-proxy-redis-announce-0:26379,redis://oauth2-proxy-redis-announce-1:26379"
99

1010
# provision an instance of the redis-ha sub-chart
1111
redis:
1212
enabled: true
1313
fullnameOverride: oauth2-proxy-redis
14-
replicas: 3
14+
1515
redisPassword: "foo"
16+
1617
redis:
1718
masterGroupName: mymaster
1819

20+
replicas: 2
21+
hardAntiAffinity: false
22+
23+
persistentVolume:
24+
enabled: false
25+
haproxy:
26+
enabled: false
27+
exporter:
28+
enabled: false
29+
1930
initContainers:
2031
waitForRedis:
2132
enabled: true

helm/oauth2-proxy/ci/redis-standalone-values.yaml

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,59 @@ sessionStorage:
88
redis:
99
enabled: true
1010
fullnameOverride: oauth2-proxy-redis
11-
replicas: 1
11+
1212
redisPassword: "foo"
1313

14+
replicas: 1
15+
16+
# Remove sentinel overhead, speed up startup and redis itself
17+
sentinel:
18+
livenessProbe:
19+
enabled: false
20+
readinessProbe:
21+
enabled: false
22+
startupProbe:
23+
enabled: false
24+
quorum: 1
25+
26+
hardAntiAffinity: false
27+
28+
redis:
29+
config:
30+
min-replicas-to-write: 0
31+
save: ""
32+
appendonly: "no"
33+
34+
terminationGracePeriodSeconds: 10
35+
livenessProbe:
36+
initialDelaySeconds: 5
37+
periodSeconds: 5
38+
timeoutSeconds: 3
39+
failureThreshold: 2
40+
readinessProbe:
41+
initialDelaySeconds: 5
42+
periodSeconds: 5
43+
timeoutSeconds: 3
44+
failureThreshold: 2
45+
startupProbe:
46+
initialDelaySeconds: 5
47+
periodSeconds: 2
48+
timeoutSeconds: 3
49+
failureThreshold: 10
50+
splitBrainDetection:
51+
interval: 0
52+
persistentVolume:
53+
enabled: false
54+
emptyDir: {}
55+
haproxy:
56+
enabled: false
57+
exporter:
58+
enabled: false
59+
sysctlImage:
60+
enabled: false
61+
hostPath:
62+
chown: false
63+
1464
initContainers:
1565
waitForRedis:
1666
enabled: true

helm/oauth2-proxy/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Compute the redis url if not set explicitly.
107107
{{- if .Values.sessionStorage.redis.standalone.connectionUrl -}}
108108
{{ .Values.sessionStorage.redis.standalone.connectionUrl }}
109109
{{- else if .Values.redis.enabled -}}
110-
{{- printf "redis://%s-master:%.0f" (include "oauth2-proxy.redis.fullname" .) .Values.redis.redis.port -}}
110+
{{- printf "redis://%s:%.0f" (include "oauth2-proxy.redis.fullname" .) .Values.redis.redis.port -}}
111111
{{- else -}}
112112
{{ fail "please set sessionStorage.redis.standalone.connectionUrl or enable the redis subchart via redis.enabled" }}
113113
{{- end -}}

0 commit comments

Comments
 (0)