mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
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:
parent
fdf6503e60
commit
e25e1d39bd
@ -31,6 +31,10 @@ unset CDPATH
|
|||||||
# they can explicitly set GO111MODULE=on
|
# they can explicitly set GO111MODULE=on
|
||||||
export GO111MODULE=off
|
export GO111MODULE=off
|
||||||
|
|
||||||
|
if [[ "${KUBE_PROVIDERLESS:-"off"}" == "on" ]]; then
|
||||||
|
export GOFLAGS=${GOFLAGS:-"-tags=providerless"}
|
||||||
|
fi
|
||||||
|
|
||||||
# The root of the build/dist directory
|
# The root of the build/dist directory
|
||||||
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
|
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
# verify the providerless build
|
# verify the providerless build
|
||||||
# https://github.com/kubernetes/enhancements/blob/master/keps/sig-cloud-provider/1179-building-without-in-tree-providers/README.md
|
# 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
|
# verify using go list
|
||||||
if _out="$(go list -mod=readonly -tags "providerless" -e -json k8s.io/kubernetes/cmd/kubelet/... \
|
if _out="$(go list -mod=readonly -tags "providerless" -e -json k8s.io/kubernetes/cmd/kubelet/... \
|
||||||
|
Loading…
Reference in New Issue
Block a user