Prevent blank after backslash which breaks shell execution (#26632)

Closes #26631

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2024-01-31 13:17:31 +01:00 committed by GitHub
parent f173c87e34
commit c1ae9a0817
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,12 +10,12 @@ USER=keycloak # <1>
PASSWORD=secret99 # <2> PASSWORD=secret99 # <2>
DATABASE=keycloak # <3> DATABASE=keycloak # <3>
HOST=$(aws rds describe-db-clusters \ HOST=$(aws rds describe-db-clusters \
--db-cluster-identifier keycloak-aurora \ # <4> --db-cluster-identifier keycloak-aurora \#<4>
--query 'DBClusters[*].Endpoint' \ --query 'DBClusters[*].Endpoint' \
--region eu-west-1 \ --region eu-west-1 \
--output text --output text
) )
kubectl run -i --tty --rm debug --image=postgres:13 --restart=Never -- psql postgresql://${USER}:${PASSWORD}@${HOST}/${DATABASE} kubectl run -i --tty --rm debug --image=postgres:15 --restart=Never -- psql postgresql://${USER}:${PASSWORD}@${HOST}/${DATABASE}
---- ----
<1> Aurora DB user, this can be the same as `--master-username` used when creating the DB. <1> Aurora DB user, this can be the same as `--master-username` used when creating the DB.
<2> Aurora DB user-password, this can be the same as `--master--user-password` used when creating the DB. <2> Aurora DB user-password, this can be the same as `--master--user-password` used when creating the DB.