Adding flag for testing to ignore cloud provider taint.

Adding the ability to ignore no schedule flags in testing.
Specifically node.cloudprovider.kubernetes.io/uninitialized:NoSchedule
Fix shellcheck complaint.
This commit is contained in:
Walter Fender
2022-10-03 23:51:41 -07:00
parent 93d1c43b49
commit 4f6894d206
3 changed files with 11 additions and 1 deletions

View File

@@ -130,6 +130,11 @@ if [[ "${KUBERNETES_PROVIDER}" == "azure" ]]; then
fi
fi
if [[ "${TEST_IGNORE_CLOUDPROVIDER_TAINT:-}" == true ]]; then
echo "Found test ignore cloude provider taint, removing NoSchedule taint from all nodes"
"${KUBE_ROOT}/cluster/kubectl.sh" taint nodes --all node.cloudprovider.kubernetes.io/uninitialized:NoSchedule-
fi
ginkgo_args=()
if [[ -n "${CONFORMANCE_TEST_SKIP_REGEX:-}" ]]; then
ginkgo_args+=("--skip=${CONFORMANCE_TEST_SKIP_REGEX}")