Skip to content

Commit 595a965

Browse files
authored
Install kubectl for e2e tests (#541)
1 parent 0e4d7eb commit 595a965

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ SKIP_CREATE_MGMT_CLUSTER ?= false
171171

172172
# Run the end-to-end tests
173173
.PHONY: test-e2e
174-
test-e2e: $(KUBECTL) $(GINKGO) $(KUSTOMIZE) $(ENVSUBST) set-flavor e2e-image
174+
test-e2e: $(GINKGO) $(KUSTOMIZE) $(ENVSUBST) set-flavor e2e-image
175175
$(ENVSUBST) < $(E2E_CONF_FILE) > $(E2E_CONF_FILE_ENVSUBST)
176176
$(GINKGO) $(GINKGO_ARGS) ./test/e2e -- \
177177
-e2e.artifacts-folder="$(ARTIFACTS)" \

scripts/ci-e2e.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ set -o pipefail
2020

2121
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2222
cd "${REPO_ROOT}" || exit 1
23+
GOPATH_BIN="$(go env GOPATH)/bin/"
24+
export PATH="${GOPATH_BIN}:${PATH}"
2325

2426
# shellcheck source=../hack/ensure-go.sh
2527
source "${REPO_ROOT}/hack/ensure-go.sh"
28+
# shellcheck source=../hack/ensure-kubectl.sh
29+
source "${REPO_ROOT}/hack/ensure-kubectl.sh"
2630

2731
ARTIFACTS="${ARTIFACTS:-${PWD}/_artifacts}"
2832
mkdir -p "${ARTIFACTS}/logs/"

0 commit comments

Comments
 (0)