Add KUBE_PROVIDERLESS for CI jobs to run with providerless tag

Also ensure `test/e2e` works with providerless tag in the verify
script

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2024-01-06 14:02:39 -05:00
parent fdf6503e60
commit e25e1d39bd
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@ unset CDPATH
# they can explicitly set GO111MODULE=on
export GO111MODULE=off
if [[ "${KUBE_PROVIDERLESS:-"off"}" == "on" ]]; then
export GOFLAGS=${GOFLAGS:-"-tags=providerless"}
fi
# The root of the build/dist directory
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"

View File

@ -26,7 +26,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
cd "${KUBE_ROOT}"
# verify the providerless build
# https://github.com/kubernetes/enhancements/blob/master/keps/sig-cloud-provider/1179-building-without-in-tree-providers/README.md
hack/verify-typecheck.sh --skip-test --tags=providerless --ignore-dirs=test/e2e
hack/verify-typecheck.sh --skip-test --tags=providerless
# verify using go list
if _out="$(go list -mod=readonly -tags "providerless" -e -json k8s.io/kubernetes/cmd/kubelet/... \