File tree 1 file changed +1
-1
lines changed
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"
82
82
83
83
(kubectl get secret -n " ${namespace} " " ${secret} " )
84
84
if [[ " $? " == " 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 " )
86
86
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)
87
87
if [[ "$redisServerIsKnown " == "1 " ]] ; then
88
88
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