Skip to content

Commit 43c0dd9

Browse files
authored
Merge pull request #11 from WyriHaximusNet/capital-secret-items
Use capital characters for secret items
2 parents ebd70e9 + 73c4503 commit 43c0dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/add.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)