Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ prerequisites_powervs(){
export ZONE=${BOSKOS_ZONE:-"osa21"}
export IBMPOWERVS_REGION=${BOSKOS_REGION:-"osa"}
export IBMPOWERVS_ZONE=${BOSKOS_ZONE:-"osa21"}
export PROVIDER_ID_FORMAT=v2
export EXP_CLUSTER_RESOURCE_SET=true
export IBMACCOUNT_ID=${IBMACCOUNT_ID:-"7cfbd5381a434af7a09289e795840d4e"}
export BASE64_API_KEY=$(tr -d '\n' <<<"$IBMCLOUD_API_KEY" | base64)
init_network_powervs
}

prerequisites_vpc(){
Expand All @@ -145,10 +142,6 @@ prerequisites_vpc(){
export IBMVPC_IMAGE_NAME=${IBMVPC_IMAGE_NAME:-"capibm-vpc-ubuntu-2204-kube-v1-29-3"}
export IBMVPC_PROFILE=${IBMVPC_PROFILE:-"bx2-4x16"}
export IBMVPC_SSHKEY_NAME=${IBMVPC_SSHKEY_NAME:-"vpc-cloud-bot-key"}
export PROVIDER_ID_FORMAT=v2
export EXP_CLUSTER_RESOURCE_SET=true
export IBMACCOUNT_ID=${IBMACCOUNT_ID:-"7cfbd5381a434af7a09289e795840d4e"}
export BASE64_API_KEY=$(tr -d '\n' <<<"$IBMCLOUD_API_KEY" | base64)
}

main(){
Expand Down Expand Up @@ -184,12 +177,15 @@ main(){

# Set common variables
export DOCKER_BUILDKIT=1
export PROVIDER_ID_FORMAT=v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note , Now by default we use v2 provider id format https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/config/manager/manager.yaml#L30, May be in future PR we can remove this explicitly setting as v2.

export EXP_CLUSTER_RESOURCE_SET=true
export IBMACCOUNT_ID=${IBMACCOUNT_ID:-"7cfbd5381a434af7a09289e795840d4e"}
export BASE64_API_KEY=$(tr -d '\n' <<<"$IBMCLOUD_API_KEY" | base64)
# Setting controller loglevel to allow debug logs from the VPC/PowerVS client
export LOGLEVEL=5

if [[ "${E2E_FLAVOR}" == "powervs" || "${E2E_FLAVOR}" == "powervs-md-remediation" ]]; then
prerequisites_powervs
init_network_powervs
fi

if [[ "${E2E_FLAVOR}" == "vpc" ]]; then
Expand Down