File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ echo "${write} is write service"
8282
8383(kubectl get secret -n " ${namespace} " " ${secret} " )
8484if [[ " $? " == " 1" ]] ; then
85- maxDatabases=$(( redis- cli - u "${write} " CONFIG GET databases | grep - v databases) || 16 )
85+ maxDatabases=$(( redis- cli - u "${write} " CONFIG GET databases | grep - v databases) || echo " 16 " )
8686 redisServerIsKnown=$(kubectl get configmap redis-database-assignment-operator-in-use-dbs-list -o json | jq -r -c '.data.dbs' | jq -r ".\"${uri_host_port} \"" | wc - l)
8787 if [[ "$redisServerIsKnown " == "1 " ]] ; then
8888 kubectl create configmap redis-database-assignment-operator-in-use-dbs-list --from-literal=dbs=$(kubectl get configmap redis-database-assignment-operator-in-use-dbs-list -o json | jq -r '.data.dbs' | jq -r ". * {\"${uri_host_port} \": {}}" | jq - c) -- dry- run - o yaml | kubectl apply - f -
You can’t perform that action at this time.
0 commit comments