Skip to content

Commit 980e4d6

Browse files
Merge pull request #249 from irh-hdh/chore/wait-for-redis-script-rediss-scheme
chore: 'check-redis.sh' script accounts for rediss:// scheme
2 parents 9138c75 + 0750b72 commit 980e4d6

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.7.27
2+
version: 7.7.28
33
apiVersion: v2
44
appVersion: 7.7.1
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -34,8 +34,8 @@ maintainers:
3434
kubeVersion: ">=1.9.0-0"
3535
annotations:
3636
artifacthub.io/changes: |
37-
- kind: fixed
38-
description: Updated the Redis chart to the latest version.
37+
- kind: added
38+
description: Added support for 'rediss://' scheme in 'check-redis.sh' script
3939
links:
4040
- name: Github PR
41-
url: https://github.com/oauth2-proxy/manifests/pull/247
41+
url: https://github.com/oauth2-proxy/manifests/pull/249

helm/oauth2-proxy/scripts/check-redis.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ check_redis() {
2424
# For parsing and checking connections
2525
parse_and_check() {
2626
url=$1
27-
clean_url=${url#redis://}
27+
28+
# Strip either redis:// or rediss://
29+
if [[ $url == rediss://* ]]; then
30+
clean_url=${url#rediss://}
31+
echo "Using secure Rediss connection..."
32+
else
33+
clean_url=${url#redis://}
34+
echo "Using standard Redis connection..."
35+
fi
36+
2837
host=$(echo $clean_url | cut -d':' -f1)
2938
port=$(echo $clean_url | cut -d':' -f2)
3039
check_redis $host $port

0 commit comments

Comments
 (0)