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 @@ -99,7 +99,7 @@ if [[ "$?" == "1" ]] ; then
9999 isDatabaseFree=$( kubectl get configmap redis-database-assignment-operator-in-use-dbs-list -o json | jq -r ' .data.dbs' | jq " .[\" ${uri_host_port} \" ].db${i} " | grep free | wc -l)
100100 if [[ " $isDatabaseFree " == " 1" ]] ; then
101101 echo " Database ${i} is available"
102- kubectl create secret generic " ${secret} " -n " ${namespace} " --from-literal=database =" ${i} " --from-literal=read =" ${read_dsn}${i} " --from-literal=write =" ${write_dsn}${i} "
102+ kubectl create secret generic " ${secret} " -n " ${namespace} " --from-literal=DATABASE =" ${i} " --from-literal=READ =" ${read_dsn}${i} " --from-literal=WRITE =" ${write_dsn}${i} "
103103 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} \" : {\" db${i} \" : \" ${namespace} /${secret} \" }}" | jq -c) --dry-run -o yaml | kubectl apply -f -
104104 echo " Database ${i} has now been claimed"
105105 break
You can’t perform that action at this time.
0 commit comments