Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e77830c7
Commit
e77830c7
authored
Aug 09, 2017
by
Jacob Beacham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New get-kube.sh option: KUBERNETES_SKIP_RELEASE_VALIDATION
parent
190ee708
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
get-kube.sh
cluster/get-kube.sh
+7
-2
No files found.
cluster/get-kube.sh
View file @
e77830c7
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
# Set KUBERNETES_SKIP_DOWNLOAD to skip downloading a release.
# Set KUBERNETES_SKIP_DOWNLOAD to skip downloading a release.
# Set KUBERNETES_SKIP_CONFIRM to skip the installation confirmation prompt.
# Set KUBERNETES_SKIP_CONFIRM to skip the installation confirmation prompt.
# Set KUBERNETES_SKIP_CREATE_CLUSTER to skip starting a cluster.
# Set KUBERNETES_SKIP_CREATE_CLUSTER to skip starting a cluster.
# Set KUBERNETES_SKIP_RELEASE_VALIDATION to skip trying to validate the
# Kubernetes release string. This implies that you know what you're doing
# and have set KUBERNETES_RELEASE and KUBERNETES_RELEASE_URL properly.
set
-o
errexit
set
-o
errexit
set
-o
nounset
set
-o
nounset
...
@@ -179,13 +182,15 @@ release=${KUBERNETES_RELEASE:-"release/stable"}
...
@@ -179,13 +182,15 @@ release=${KUBERNETES_RELEASE:-"release/stable"}
# Validate Kubernetes release version.
# Validate Kubernetes release version.
# Translate a published version <bucket>/<version> (e.g. "release/stable") to version number.
# Translate a published version <bucket>/<version> (e.g. "release/stable") to version number.
set_binary_version
"
${
release
}
"
set_binary_version
"
${
release
}
"
if
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
if
[[
-z
"
${
KUBERNETES_SKIP_RELEASE_VALIDATION
-
}
"
]]
;
then
if
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
# Override KUBERNETES_RELEASE_URL to point to the CI bucket;
# Override KUBERNETES_RELEASE_URL to point to the CI bucket;
# this will be used by get-kube-binaries.sh.
# this will be used by get-kube-binaries.sh.
KUBERNETES_RELEASE_URL
=
"
${
KUBERNETES_CI_RELEASE_URL
}
"
KUBERNETES_RELEASE_URL
=
"
${
KUBERNETES_CI_RELEASE_URL
}
"
elif
!
[[
${
KUBE_VERSION
}
=
~
${
KUBE_RELEASE_VERSION_REGEX
}
]]
;
then
elif
!
[[
${
KUBE_VERSION
}
=
~
${
KUBE_RELEASE_VERSION_REGEX
}
]]
;
then
echo
"Version doesn't match regexp"
>
&2
echo
"Version doesn't match regexp"
>
&2
exit
1
exit
1
fi
fi
fi
kubernetes_tar_url
=
"
${
KUBERNETES_RELEASE_URL
}
/
${
KUBE_VERSION
}
/
${
file
}
"
kubernetes_tar_url
=
"
${
KUBERNETES_RELEASE_URL
}
/
${
KUBE_VERSION
}
/
${
file
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment