зеркало из https://github.com/Azure/ARO-RP.git
Add vpn code run before e2e to connect to the aks (#2338)
This commit is contained in:
Родитель
cae9508907
Коммит
ca87817010
|
@ -43,7 +43,9 @@ jobs:
|
|||
|
||||
set -x
|
||||
. ./hack/e2e/run-rp-and-e2e.sh
|
||||
trap 'set +e; kill_rp; clean_e2e_db' EXIT
|
||||
trap 'set +e; kill_rp; clean_e2e_db; kill_vpn' EXIT
|
||||
|
||||
run_vpn
|
||||
|
||||
deploy_e2e_db
|
||||
|
||||
|
|
|
@ -37,6 +37,15 @@ kill_rp(){
|
|||
wait $rppid
|
||||
}
|
||||
|
||||
run_vpn() {
|
||||
sudo openvpn --config secrets/$VPN --daemon --writepid vpnpid
|
||||
sleep 10
|
||||
}
|
||||
|
||||
kill_vpn() {
|
||||
while read pid; do sudo kill $pid; done < vpnpid
|
||||
}
|
||||
|
||||
deploy_e2e_db() {
|
||||
echo "########## 📦 Creating new DB $DATABASE_NAME in $DATABASE_ACCOUNT_NAME ##########"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче