You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update kind to v0.4.0. This requires overriding Kubernetes versions
with specific patch versions that kind 0.4.0 supports. Also, feature
gate setting is only supported on 1.15+ due to
kind.sigs.k8s.io/v1alpha3 and kubeadm.k8s.io/v1beta2 dependencies.
Copy file name to clipboardExpand all lines: prow.sh
+74-31Lines changed: 74 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,26 @@ configvar () {
52
52
evalecho"\$3:""$1=\${$1}"
53
53
}
54
54
55
+
# Takes the minor version of $CSI_PROW_KUBERNETES_VERSION and overrides it to
56
+
# $1 if they are equal minor versions. Ignores versions that begin with
57
+
# "release-".
58
+
override_k8s_version () {
59
+
local current_minor_version
60
+
local override_minor_version
61
+
62
+
# Ignore: See if you can use ${variable//search/replace} instead.
63
+
# shellcheck disable=SC2001
64
+
current_minor_version="$(echo "${CSI_PROW_KUBERNETES_VERSION}"| sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\1\.\2/')"
65
+
66
+
# Ignore: See if you can use ${variable//search/replace} instead.
67
+
# shellcheck disable=SC2001
68
+
override_minor_version="$(echo "${1}"| sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\1\.\2/')"
69
+
if [ "${current_minor_version}"=="${override_minor_version}" ];then
70
+
CSI_PROW_KUBERNETES_VERSION="$1"
71
+
echo"Overriding CSI_PROW_KUBERNETES_VERSION with $1: $CSI_PROW_KUBERNETES_VERSION"
72
+
fi
73
+
}
74
+
55
75
# Prints the value of a variable + version suffix, falling back to variable + "LATEST".
56
76
get_versioned_variable () {
57
77
local var="$1"
@@ -81,7 +101,7 @@ configvar CSI_PROW_GO_VERSION_GINKGO "${CSI_PROW_GO_VERSION_BUILD}" "Go version
81
101
# kind version to use. If the pre-installed version is different,
82
102
# the desired version is downloaded from https://github.com/kubernetes-sigs/kind/releases/download/
83
103
# (if available), otherwise it is built from source.
84
-
configvar CSI_PROW_KIND_VERSION 0.2.1"kind"
104
+
configvar CSI_PROW_KIND_VERSION v0.4.0"kind"
85
105
86
106
# ginkgo test runner version to use. If the pre-installed version is
87
107
# different, the desired version is built from source.
0 commit comments