Skip to content

Commit

Permalink
make test-cmd: use kube::util::find-binary to get kubeadm binary
Browse files Browse the repository at this point in the history
fixes finding the binary when dockerized builds vs host builds
  • Loading branch information
BenTheElder committed Nov 27, 2024
1 parent 0e1abc4 commit a43b00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/make-rules/test-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [[ ${WHAT} == "" || ${WHAT} =~ .*kubeadm.* ]] ; then
# build kubeadm
make all -C "${KUBE_ROOT}" WHAT=cmd/kubeadm
# unless the user sets KUBEADM_PATH, assume that "make all..." just built it
export KUBEADM_PATH="${KUBEADM_PATH:=$(kube::realpath "${KUBE_ROOT}")/_output/local/go/bin/kubeadm}"
export KUBEADM_PATH="${KUBEADM_PATH:="$(kube::util::find-binary kubeadm)"}"
# invoke the tests
make -C "${KUBE_ROOT}" test \
WHAT=k8s.io/kubernetes/cmd/kubeadm/test/cmd \
Expand Down

0 comments on commit a43b00b

Please sign in to comment.