Skip to content

Commit a95f826

Browse files
test-e2e.sh: idempotently and safely create test ns if not exists (carvel-dev#295)
* test-e2e.sh: idempotently and safely create test ns if not exists * hack/test-e2e: now with more accurate comments
1 parent bf52b94 commit a95f826

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hack/test-e2e.sh

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -e -x -u
44

55
go clean -testcache
66

7+
# create ns if not exists because the `apply -f -` won't complain on a no-op if the ns already exists.
8+
kubectl create ns $KAPPCTRL_E2E_NAMESPACE --dry-run=client -o yaml | kubectl apply -f -
79
go test ./test/e2e/ -timeout 60m -test.v $@
810

911
echo E2E SUCCESS

0 commit comments

Comments
 (0)