File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,16 @@ release=${KUBERNETES_RELEASE:-"release/stable"}
183
183
# Translate a published version <bucket>/<version> (e.g. "release/stable") to version number.
184
184
set_binary_version " ${release} "
185
185
if [[ -z " ${KUBERNETES_SKIP_RELEASE_VALIDATION-} " ]]; then
186
- if [[ ${KUBE_VERSION} =~ ${KUBE_CI_VERSION_REGEX} ]]; then
186
+ if [[ ${KUBE_VERSION} =~ ${KUBE_RELEASE_VERSION_REGEX} ]]; then
187
+ # Use KUBERNETES_RELEASE_URL for Releases and Pre-Releases
188
+ # ie. 1.18.0 or 1.19.0-beta.0
189
+ KUBERNETES_RELEASE_URL=" ${KUBERNETES_RELEASE_URL} "
190
+ elif [[ ${KUBE_VERSION} =~ ${KUBE_CI_VERSION_REGEX} ]]; then
187
191
# Override KUBERNETES_RELEASE_URL to point to the CI bucket;
188
192
# this will be used by get-kube-binaries.sh.
193
+ # ie. v1.19.0-beta.0.318+b618411f1edb98
189
194
KUBERNETES_RELEASE_URL=" ${KUBERNETES_CI_RELEASE_URL} "
190
- elif ! [[ ${KUBE_VERSION} =~ ${KUBE_RELEASE_VERSION_REGEX} ]] ; then
195
+ else
191
196
echo " Version doesn't match regexp" >&2
192
197
exit 1
193
198
fi
You can’t perform that action at this time.
0 commit comments