File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,16 @@ helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \
144144 --values /tmp/values-ingress-nginx.yaml
145145
146146# Redis Cluster
147- REDIS_ADMIN_PASSWORD_VAR=${REDIS_ADMIN_PASSWORD:- $(date +% s | sha256sum | base64 | head -c 32)}
148147helm repo add bitnami https://charts.bitnami.com/bitnami
149148
149+ REDIS_PASSWORD=${REDIS_ADMIN_PASSWORD:- $(kubectl get secret --namespace ${NAMESPACE} cosmotechredis -o jsonpath=" {.data.redis-password}" | base64 -d || " " )}
150+ if [[ -z $REDIS_PASSWORD ]] ; then
151+ REDIS_PASSWORD=$( date +%s | sha256sum | base64 | head -c 32)
152+ fi
153+
150154cat << EOF > values-redis.yaml
151155auth:
152- password: ${REDIS_ADMIN_PASSWORD_VAR }
156+ password: ${REDIS_PASSWORD }
153157image:
154158 registry: ghcr.io
155159 repository: cosmo-tech/cosmotech-redis
@@ -469,7 +473,7 @@ config:
469473 host: "cosmotechredis-master.${NAMESPACE} .svc.cluster.local"
470474 port: "6379"
471475 username: "default"
472- password: "${REDIS_ADMIN_PASSWORD_VAR } "
476+ password: "${REDIS_PASSWORD } "
473477
474478ingress:
475479 enabled: ${COSMOTECH_API_INGRESS_ENABLED}
You can’t perform that action at this time.
0 commit comments