Skip to content

Commit 7d19aa3

Browse files
committed
add namespace to ci-entrypoint cleanup
1 parent 15f32c9 commit 7d19aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ capz::ci-entrypoint::on_exit() {
239239
"${REPO_ROOT}/hack/log/redact.sh" || true
240240
# cleanup all resources we use
241241
if [[ ! "${SKIP_CLEANUP:-}" == "true" ]]; then
242-
timeout 1800 "${KUBECTL}" --kubeconfig "${REPO_ROOT}/${KIND_CLUSTER_NAME}.kubeconfig" delete cluster "${CLUSTER_NAME}" || echo "Unable to delete cluster ${CLUSTER_NAME}"
242+
timeout 1800 "${KUBECTL}" --kubeconfig "${REPO_ROOT}/${KIND_CLUSTER_NAME}.kubeconfig" delete cluster "${CLUSTER_NAME}" -n default || echo "Unable to delete cluster ${CLUSTER_NAME}"
243243
make --directory="${REPO_ROOT}" kind-reset || true
244244
fi
245245
}

0 commit comments

Comments
 (0)