mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
added script for testing against kubernetes database
This commit is contained in:
parent
cbcf8abef7
commit
4c2437185e
1 changed files with 10 additions and 0 deletions
10
k8s_test.sh
Normal file
10
k8s_test.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
kubectl -n services port-forward svc/postgres-postgresql 5432:5432 & PF=$!
|
||||
|
||||
POSTGRES_PASS=$(kubectl -n villas-demo get secret postgres-credentials -o json | jq -r .data.password | base64 -d)
|
||||
|
||||
go run start.go -dbhost localhost -dbname villas -dbuser villas -dbpass ${POSTGRES_PASS}
|
||||
|
||||
kill $PF
|
||||
wait $PF
|
Loading…
Add table
Reference in a new issue