forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify kube-cross dependency handling
We can indirectly retrieve the kube-cross version from the `build/build-image/cross/VERSION` for the sample-apiserver. This allows us to simplify the handling in `build/dependencies.yaml` as well as the required approval (via `OWNERS`) if the kube-cross version changes. Signed-off-by: Sascha Grunert <[email protected]>
- Loading branch information
1 parent
6db6c80
commit 0ed0714
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,14 @@ TARGET ?= $(CURDIR) | |
GOARM = 7 | ||
GOLANG_VERSION ?= latest | ||
SRC_DIR = $(notdir $(shell pwd)) | ||
KUBE_CROSS_VERSION ?= $(shell cat ../../../build/build-image/cross/VERSION) | ||
export | ||
|
||
# Build v1.17.0 to ensure the current release supports a prior version of the sample apiserver | ||
# Get without building to populate module cache | ||
# Then, get with OS/ARCH-specific env to build | ||
bin: | ||
docker run --rm -i -v "${TARGET}:${TARGET}:Z" k8s.gcr.io/build-image/kube-cross:v1.16.4-2 \ | ||
docker run --rm -i -v "${TARGET}:${TARGET}:Z" k8s.gcr.io/build-image/kube-cross:${KUBE_CROSS_VERSION} \ | ||
/bin/bash -c "\ | ||
mkdir -p /go/src /go/bin && \ | ||
GO111MODULE=on go get -d k8s.io/[email protected] && \ | ||
|