Append a random number to postgres client

This commit is contained in:
Luke Van Seters 2021-12-21 10:28:13 -05:00
parent 82c167d842
commit 35074c098e

2
mev
View File

@ -13,7 +13,7 @@ function db(){
username=$(get_kube_db_secret "username")
password=$(get_kube_db_secret "password")
kubectl run -i --rm --tty postgres-client \
kubectl run -i --rm --tty postgres-client-$RANDOM \
--env="PGPASSWORD=$password" \
--image=jbergknoff/postgresql-client \
-- $DB_NAME --host=$host --user=$username