mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 15:20:17 +00:00
hack: configure Go environments where necessary
These scripts rely on the system's default go; this changes that using kube::golang::setup_env so that the appropriate go is used when the system's isn't sufficient. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
parent
5ebd0da6cc
commit
3124a13587
@ -26,6 +26,8 @@ set -o pipefail
|
|||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
go run test/featuregates_linter/main.go feature-gates verify
|
go run test/featuregates_linter/main.go feature-gates verify
|
||||||
|
@ -28,6 +28,8 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
RELEASE_BIN_PKGS=(
|
RELEASE_BIN_PKGS=(
|
||||||
"${KUBE_ROOT}/cmd/cloud-controller-manager"
|
"${KUBE_ROOT}/cmd/cloud-controller-manager"
|
||||||
"${KUBE_ROOT}/cmd/kube-apiserver"
|
"${KUBE_ROOT}/cmd/kube-apiserver"
|
||||||
|
@ -22,5 +22,9 @@ set -o pipefail
|
|||||||
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd -P)
|
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd -P)
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
# convert dumped spec (see dump-spec.sh) to conformance.yaml
|
# convert dumped spec (see dump-spec.sh) to conformance.yaml
|
||||||
go run ./test/conformance/walk.go --source="${KUBE_ROOT}" ./_output/specsummaries.json > ./_output/conformance.yaml
|
go run ./test/conformance/walk.go --source="${KUBE_ROOT}" ./_output/specsummaries.json > ./_output/conformance.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user