File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,9 @@ generate-go-conversions-core: $(CONVERSION_GEN)
159
159
160
160
.PHONY : generate-e2e-templates
161
161
generate-e2e-templates : $(KUSTOMIZE )
162
+ ifneq ($(E2E_FLAVOR ) , vpc)
162
163
$(KUSTOMIZE) build $(E2E_TEMPLATES)/cluster-template-md-remediation --load-restrictor LoadRestrictionsNone > $(E2E_TEMPLATES)/cluster-template-md-remediation.yaml
164
+ endif
163
165
164
166
.PHONY : modules
165
167
modules : # # Runs go mod to ensure modules are up to date
Original file line number Diff line number Diff line change @@ -99,6 +99,19 @@ prerequisites_powervs(){
99
99
export LOGLEVEL=5
100
100
}
101
101
102
+ prerequisites_vpc (){
103
+ # Assigning VPC variables
104
+ export IBMVPC_REGION=${REGION}
105
+ export IBMVPC_ZONE=" ${REGION} -1"
106
+ export IBMVPC_RESOURCEGROUP=${IBMVPC_RESOURCEGROUP:- " fa5405a58226402f9a5818cb9b8a5a8a" }
107
+ export IBMVPC_NAME=" capi-vpc-$( cat /dev/urandom | tr -dc ' a-zA-Z0-9' | head --bytes 5) "
108
+ export IBMVPC_IMAGE_ID=${IBMVPC_IMAGE_ID:- " r006-c6f5840c-fd6e-4b40-97ac-fbf13e1c09cd" }
109
+ export IBMVPC_PROFILE=${IBMVPC_PROFILE:- " bx2-4x16" }
110
+ export IBMVPC_SSHKEY_ID=${IBMVPC_SSHKEY_ID:- " r006-c2ae2255-9961-4654-80ea-ea9091c4decd" }
111
+ # Setting controller loglevel to allow debug logs from the VPC client
112
+ export LOGLEVEL=5
113
+ }
114
+
102
115
main (){
103
116
# If BOSKOS_HOST is set then acquire an IBM Cloud resource from Boskos.
104
117
if [ -n " ${BOSKOS_HOST:- } " ]; then
@@ -132,8 +145,12 @@ main(){
132
145
init_network_powervs
133
146
fi
134
147
148
+ if [[ " ${E2E_FLAVOR} " == " vpc" ]]; then
149
+ prerequisites_vpc
150
+ fi
151
+
135
152
# Run the e2e tests
136
- make test-e2e
153
+ make test-e2e E2E_FLAVOR= ${E2E_FLAVOR}
137
154
test_status=" ${?} "
138
155
echo TESTSTATUS=" ${test_status} "
139
156
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ providers:
42
42
targetName : " cluster-template-vpc.yaml"
43
43
44
44
variables :
45
- KUBERNETES_VERSION : " ${KUBERNETES_VERSION:-v1.23.5 }"
45
+ KUBERNETES_VERSION : " ${KUBERNETES_VERSION:-v1.25.2 }"
46
46
# Below variable should be set based on the targeted environment
47
47
SERVICE_ENDPOINT : " ${SERVICE_ENDPOINT:-}"
48
48
# Cluster Addons
@@ -60,7 +60,7 @@ variables:
60
60
intervals :
61
61
default/wait-controllers : ["3m", "10s"]
62
62
default/wait-cluster : ["20m", "10s"]
63
- default/wait-control-plane : ["30m ", "10s"]
63
+ default/wait-control-plane : ["60m ", "10s"]
64
64
default/wait-worker-nodes : ["30m", "10s"]
65
65
default/wait-delete-cluster : ["20m", "10s"]
66
66
default/wait-machine-upgrade : ["50m", "10s"]
You can’t perform that action at this time.
0 commit comments