@@ -49,16 +49,6 @@ periodics:
49
49
source "./hack/boskos.sh"
50
50
51
51
make install-deployer-tf
52
- TF_LATEST="v1.9.8"
53
- RESOURCE_TYPE="powervs-k8s-conformance"
54
-
55
- trap 'cleanup ${HEART_BEAT_PID:-}' EXIT
56
-
57
- curl -fsSL https://releases.hashicorp.com/terraform/${TF_LATEST:1}/terraform_${TF_LATEST:1}_linux_amd64.zip -o ./terraform.zip
58
- unzip -o ./terraform.zip >/dev/null 2>&1
59
- rm -f ./terraform.zip
60
- TF="$PWD/terraform"
61
- export PATH=$PWD:$PATH
62
52
63
53
apt-get update && apt-get install -y ansible
64
54
@@ -75,35 +65,6 @@ periodics:
75
65
TIMESTAMP=$(date +%s)
76
66
jq --arg key0 'k8s-build-version' --arg value0 $K8S_BUILD_VERSION '. | .[$key0]=$value0' <<<'{}' > $ARTIFACTS/metadata.json
77
67
78
- set +o errexit
79
- # If BOSKOS_HOST is set then acquire a resource from Boskos.
80
- if [ -n "${BOSKOS_HOST:-}" ]; then
81
- # Check out the resource from Boskos and store the produced environment
82
- # variables in a temporary file.
83
- account_env_var_file="$(mktemp)"
84
- checkout_account ${RESOURCE_TYPE} 1> "${account_env_var_file}"
85
- checkout_account_status="${?}"
86
-
87
- # If the checkout process was a success then load the
88
- # environment variables into this process.
89
- [ "${checkout_account_status}" = "0" ] && . "${account_env_var_file}"
90
-
91
- # Always remove the account environment variable file which
92
- # could contain sensitive information.
93
- rm -f "${account_env_var_file}"
94
-
95
- if [ ! "${checkout_account_status}" = "0" ]; then
96
- echo "error getting account from boskos" 1>&2
97
- exit "${checkout_account_status}"
98
- fi
99
-
100
- # Run the heart beat process to tell Boskos that we are still
101
- # using the checked out resource periodically.
102
- heartbeat_account >> "$ARTIFACTS/boskos.log" 2>&1 &
103
- HEART_BEAT_PID=$(echo $!)
104
- fi
105
-
106
- set -o xtrace
107
68
kubetest2 tf --powervs-image-name CentOS-Stream-9 \
108
69
--powervs-region ${BOSKOS_REGION} --powervs-zone ${BOSKOS_ZONE} \
109
70
--powervs-service-id ${BOSKOS_RESOURCE_ID} \
0 commit comments