@@ -101,7 +101,7 @@ configvar CSI_PROW_GO_VERSION_GINKGO "${CSI_PROW_GO_VERSION_BUILD}" "Go version
101
101
# kind version to use. If the pre-installed version is different,
102
102
# the desired version is downloaded from https://github.com/kubernetes-sigs/kind/releases/download/
103
103
# (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"
105
105
106
106
# ginkgo test runner version to use. If the pre-installed version is
107
107
# different, the desired version is built from source.
@@ -126,19 +126,19 @@ configvar CSI_PROW_BUILD_JOB true "building code in repo enabled"
126
126
# use the same settings as for "latest" Kubernetes. This works
127
127
# as long as there are no breaking changes in Kubernetes, like
128
128
# 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"
130
130
131
131
# This is a hack to workaround the issue that each version
132
132
# of kind currently only supports specific patch versions of
133
133
# Kubernetes. We need to override CSI_PROW_KUBERNETES_VERSION
134
134
# passed in by our CI/pull jobs to the versions that
135
- # kind v0.4 .0 supports.
135
+ # kind v0.5 .0 supports.
136
136
#
137
137
# If the version is prefixed with "release-", then nothing
138
138
# 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 "
142
142
143
143
# CSI_PROW_KUBERNETES_VERSION reduced to first two version numbers and
144
144
# 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
223
223
configvar CSI_PROW_SANITY_POD " csi-hostpathplugin-0" " Kubernetes pod with CSI driver"
224
224
configvar CSI_PROW_SANITY_CONTAINER " hostpath" " Kubernetes container with CSI driver"
225
225
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
+
226
230
# Each job can run one or more of the following tests, identified by
227
231
# a single word:
228
232
# - unit testing
@@ -396,6 +400,15 @@ install_ginkgo () {
396
400
mv " $GOPATH /bin/ginkgo" " ${CSI_PROW_BIN} "
397
401
}
398
402
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
+
399
412
# This checks out a repo ("https://github.com/kubernetes/kubernetes")
400
413
# in a certain location ("$GOPATH/src/k8s.io/kubernetes") at
401
414
# a certain revision (a hex commit hash, v1.13.1, master). It's okay
@@ -508,6 +521,7 @@ kind: Cluster
508
521
apiVersion: kind.sigs.k8s.io/v1alpha3
509
522
nodes:
510
523
- role: control-plane
524
+ - role: worker
511
525
EOF
512
526
513
527
# kubeadm has API dependencies between apiVersion and Kubernetes version
@@ -936,6 +950,10 @@ main () {
936
950
# changes in "release-tools" in a PR (that fails the "is release-tools unmodified"
937
951
# test).
938
952
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
939
957
if ! run_with_go " ${CSI_PROW_GO_VERSION_BUILD} " make -k test 2>&1 | make_test_to_junit; then
940
958
warn " 'make test' failed, proceeding anyway"
941
959
ret=1
0 commit comments