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 15385b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hack/ci/e2e-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ 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"
}

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

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

Expand Down

0 comments on commit 15385b0

Please sign in to comment.