@@ -37,14 +37,10 @@ ARCH=$(uname -m)
37
37
PVSADM_VERSION=${PVSADM_VERSION:- " v0.1.4-alpha.3" }
38
38
E2E_FLAVOR=${E2E_FLAVOR:- }
39
39
REGION=${REGION:- " us-south" }
40
- RESOURCE_GROUP=${RESOURCE_GROUP:- " prow-resource-group" }
41
40
42
41
trap cleanup EXIT
43
42
44
43
cleanup (){
45
- # Delete the created ports for the network instance
46
- [ -n " ${NEW_PORT} " ] && ./pvsadm delete port --network ${IBMPOWERVS_NETWORK_NAME} --port-id ${PORT_ID} --instance-id ${IBMPOWERVS_SERVICE_INSTANCE_ID}
47
-
48
44
# stop the boskos heartbeat
49
45
[[ -z ${HEART_BEAT_PID:- } ]] || kill -9 " ${HEART_BEAT_PID} " || true
50
46
}
@@ -91,9 +87,10 @@ init_network_powervs(){
91
87
92
88
prerequisites_powervs (){
93
89
# Assigning PowerVS variables
94
- export IBMPOWERVS_IMAGE_NAME=${IBMPOWERVS_IMAGE_NAME:- " capibm-powervs-centos-streams8-1-22-4" }
95
- export IBMPOWERVS_SERVICE_INSTANCE_ID=${IBMPOWERVS_SERVICE_INSTANCE_ID:- " 0f28d13a-6e33-4d86-b6d7-a9b46ff7659e" }
96
- export IBMPOWERVS_NETWORK_NAME=${BOSKOS_RESOURCE_NAME:- " capi-e2e-test" }
90
+ export IBMPOWERVS_SSHKEY_NAME=${IBMPOWERVS_SSHKEY_NAME:- " powercloud-bot-key" }
91
+ export IBMPOWERVS_IMAGE_NAME=${IBMPOWERVS_IMAGE_NAME:- " capibm-powervs-centos-streams8-1-24-2" }
92
+ export IBMPOWERVS_SERVICE_INSTANCE_ID=${BOSKOS_RESOURCE_ID:- " 0f28d13a-6e33-4d86-b6d7-a9b46ff7659e" }
93
+ export IBMPOWERVS_NETWORK_NAME=" capi-net-$( cat /dev/urandom | tr -dc ' a-zA-Z0-9' | head --bytes 5) "
97
94
# Setting controller loglevel to allow debug logs from the PowerVS client
98
95
export LOGLEVEL=5
99
96
}
@@ -126,7 +123,7 @@ main(){
126
123
HEART_BEAT_PID=$( echo $! )
127
124
fi
128
125
129
- if [[ " ${E2E_FLAVOR} " == " powervs" ]]; then
126
+ if [[ " ${E2E_FLAVOR} " == " powervs" || " ${E2E_FLAVOR} " == " md-remediation " ]]; then
130
127
prerequisites_powervs
131
128
init_network_powervs
132
129
fi
0 commit comments