Skip to content

Commit

Permalink
fix: ensure proper kubectl is used
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Sadowski <[email protected]>
  • Loading branch information
rjsadow committed Aug 13, 2023
1 parent 80a64d9 commit 20ee665
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/ci/e2e-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ build() {
fi
# make sure we have e2e requirements
make all WHAT="cmd/kubectl test/e2e/e2e.test ${GINKGO_SRC_DIR}"

# Ensure the built kubecl is used instead of system
export PATH="${PWD}/_output/bin/kubectl:$PATH"

which kubectl
kubectl version
}

check_structured_log_support() {
Expand Down Expand Up @@ -197,6 +203,9 @@ EOF
-v=3 \
"--config=${ARTIFACTS}/kind-config.yaml"

env
which kubectl
ls -lLatr "${PWD}"/_output/bin
# debug cluster version
kubectl version

Expand Down

0 comments on commit 20ee665

Please sign in to comment.