Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default e2e namespace and create it if needed #539

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions hack/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ go clean -testcache

export KAPP_BINARY_PATH="${KAPP_BINARY_PATH:-$PWD/kapp}"

if [ -z "$KAPP_E2E_NAMESPACE" ]; then
praveenrewar marked this conversation as resolved.
Show resolved Hide resolved
echo "setting e2e namespace to: kapp-test";
export KAPP_E2E_NAMESPACE="kapp-test"
fi
# create ns if not exists because the `apply -f -` won't complain on a no-op if the ns already exists.
kubectl create ns $KAPP_E2E_NAMESPACE --dry-run=client -o yaml | kubectl apply -f -

go test ./test/e2e/ -timeout 60m -test.v $@

echo E2E SUCCESS