Skip to content

Commit 1cfa9b4

Browse files
committed
Merge commit '6ecaa76eb94a5b30907fccdccbd678e53887298d' into prow-update-master
2 parents ab38a80 + 6ecaa76 commit 1cfa9b4

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

release-tools/build.make

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ endif
6363
build-%:
6464
mkdir -p bin
6565
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
66+
CGO_ENABLED=0 GOOS=windows go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./cmd/$*
6667

6768
container-%: build-%
6869
docker build -t $*:latest -f $(shell if [ -e ./cmd/$*/Dockerfile ]; then echo ./cmd/$*/Dockerfile; else echo Dockerfile; fi) --label revision=$(REV) .

release-tools/prow.sh

+24-6
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ configvar CSI_PROW_GO_VERSION_GINKGO "${CSI_PROW_GO_VERSION_BUILD}" "Go version
101101
# kind version to use. If the pre-installed version is different,
102102
# the desired version is downloaded from https://github.com/kubernetes-sigs/kind/releases/download/
103103
# (if available), otherwise it is built from source.
104-
configvar CSI_PROW_KIND_VERSION 2555d8e09d5a77ee718414cec9f6083dfa028dc5 "kind"
104+
configvar CSI_PROW_KIND_VERSION "v0.5.0" "kind"
105105

106106
# ginkgo test runner version to use. If the pre-installed version is
107107
# different, the desired version is built from source.
@@ -126,19 +126,19 @@ configvar CSI_PROW_BUILD_JOB true "building code in repo enabled"
126126
# use the same settings as for "latest" Kubernetes. This works
127127
# as long as there are no breaking changes in Kubernetes, like
128128
# deprecating or changing the implementation of an alpha feature.
129-
configvar CSI_PROW_KUBERNETES_VERSION 1.13.3 "Kubernetes"
129+
configvar CSI_PROW_KUBERNETES_VERSION 1.15.3 "Kubernetes"
130130

131131
# This is a hack to workaround the issue that each version
132132
# of kind currently only supports specific patch versions of
133133
# Kubernetes. We need to override CSI_PROW_KUBERNETES_VERSION
134134
# passed in by our CI/pull jobs to the versions that
135-
# kind v0.4.0 supports.
135+
# kind v0.5.0 supports.
136136
#
137137
# If the version is prefixed with "release-", then nothing
138138
# is overridden.
139-
override_k8s_version "1.13.7"
140-
override_k8s_version "1.14.3"
141-
override_k8s_version "1.15.0"
139+
override_k8s_version "1.13.10"
140+
override_k8s_version "1.14.6"
141+
override_k8s_version "1.15.3"
142142

143143
# CSI_PROW_KUBERNETES_VERSION reduced to first two version numbers and
144144
# with underscore (1_13 instead of 1.13.3) and in uppercase (LATEST
@@ -223,6 +223,10 @@ configvar CSI_PROW_SANITY_SERVICE "hostpath-service" "Kubernetes TCP service nam
223223
configvar CSI_PROW_SANITY_POD "csi-hostpathplugin-0" "Kubernetes pod with CSI driver"
224224
configvar CSI_PROW_SANITY_CONTAINER "hostpath" "Kubernetes container with CSI driver"
225225

226+
# The version of dep to use for 'make test-vendor'. Ignored if the project doesn't
227+
# use dep. Only binary releases of dep are supported (https://github.com/golang/dep/releases).
228+
configvar CSI_PROW_DEP_VERSION v0.5.1 "golang dep version to be used for vendor checking"
229+
226230
# Each job can run one or more of the following tests, identified by
227231
# a single word:
228232
# - unit testing
@@ -396,6 +400,15 @@ install_ginkgo () {
396400
mv "$GOPATH/bin/ginkgo" "${CSI_PROW_BIN}"
397401
}
398402

403+
# Ensure that we have the desired version of dep.
404+
install_dep () {
405+
if dep version 2>/dev/null | grep -q "version:.*${CSI_PROW_DEP_VERSION}$"; then
406+
return
407+
fi
408+
run curl --fail --location -o "${CSI_PROW_WORK}/bin/dep" "https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64" &&
409+
chmod u+x "${CSI_PROW_WORK}/bin/dep"
410+
}
411+
399412
# This checks out a repo ("https://github.com/kubernetes/kubernetes")
400413
# in a certain location ("$GOPATH/src/k8s.io/kubernetes") at
401414
# a certain revision (a hex commit hash, v1.13.1, master). It's okay
@@ -508,6 +521,7 @@ kind: Cluster
508521
apiVersion: kind.sigs.k8s.io/v1alpha3
509522
nodes:
510523
- role: control-plane
524+
- role: worker
511525
EOF
512526

513527
# kubeadm has API dependencies between apiVersion and Kubernetes version
@@ -936,6 +950,10 @@ main () {
936950
# changes in "release-tools" in a PR (that fails the "is release-tools unmodified"
937951
# test).
938952
if tests_enabled "unit"; then
953+
if [ -f Gopkg.toml ] && ! install_dep; then
954+
warn "installing 'dep' failed, cannot test vendoring"
955+
ret=1
956+
fi
939957
if ! run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make -k test 2>&1 | make_test_to_junit; then
940958
warn "'make test' failed, proceeding anyway"
941959
ret=1

0 commit comments

Comments
 (0)