aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/authentication/components/oauth2-proxy/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/authentication/components/oauth2-proxy/scripts')
-rwxr-xr-x[-rw-r--r--]kubernetes/authentication/components/oauth2-proxy/scripts/check-redis.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/kubernetes/authentication/components/oauth2-proxy/scripts/check-redis.sh b/kubernetes/authentication/components/oauth2-proxy/scripts/check-redis.sh
index 24e628f426..62dd9b684f 100644..100755
--- a/kubernetes/authentication/components/oauth2-proxy/scripts/check-redis.sh
+++ b/kubernetes/authentication/components/oauth2-proxy/scripts/check-redis.sh
@@ -24,7 +24,16 @@ check_redis() {
# For parsing and checking connections
parse_and_check() {
url=$1
- clean_url=${url#redis://}
+
+ # Strip either redis:// or rediss://
+ if [ $url = "rediss://*" ]; then
+ clean_url=${url#rediss://}
+ echo "Using secure Rediss connection..."
+ else
+ clean_url=${url#redis://}
+ echo "Using standard Redis connection..."
+ fi
+
host=$(echo $clean_url | cut -d':' -f1)
port=$(echo $clean_url | cut -d':' -f2)
check_redis $host $port