Skip to content

Commit 8f8fd15

Browse files
Remove hack/boskos.sh related code from conformance job
1 parent 63585a0 commit 8f8fd15

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

config/jobs/periodic/kubernetes/test-kubernetes-periodics.yaml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ periodics:
4949
source "./hack/boskos.sh"
5050
5151
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
6252
6353
apt-get update && apt-get install -y ansible
6454
@@ -75,35 +65,6 @@ periodics:
7565
TIMESTAMP=$(date +%s)
7666
jq --arg key0 'k8s-build-version' --arg value0 $K8S_BUILD_VERSION '. | .[$key0]=$value0' <<<'{}' > $ARTIFACTS/metadata.json
7767
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
10768
kubetest2 tf --powervs-image-name CentOS-Stream-9 \
10869
--powervs-region ${BOSKOS_REGION} --powervs-zone ${BOSKOS_ZONE} \
10970
--powervs-service-id ${BOSKOS_RESOURCE_ID} \

0 commit comments

Comments
 (0)