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
106a8ce4
Commit
106a8ce4
authored
Mar 17, 2017
by
Erick Fejta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not override KUBERNETES_RELEASE if already set
parent
f37cffcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
get-kube-binaries.sh
cluster/get-kube-binaries.sh
+7
-3
No files found.
cluster/get-kube-binaries.sh
View file @
106a8ce4
...
...
@@ -44,6 +44,10 @@ KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
KUBERNETES_RELEASE_URL
=
"
${
KUBERNETES_RELEASE_URL
:-
https
://storage.googleapis.com/kubernetes-release/release
}
"
function
detect_kube_release
()
{
if
[[
-n
"
${
KUBE_VERSION
:-}
"
]]
;
then
return
0
# Allow caller to explicitly set version
fi
if
[[
!
-e
"
${
KUBE_ROOT
}
/version"
]]
;
then
echo
"Can't determine Kubernetes release."
>
&2
echo
"
${
BASH_SOURCE
}
should only be run from a prebuilt Kubernetes release."
>
&2
...
...
@@ -51,8 +55,7 @@ function detect_kube_release() {
exit
1
fi
KUBERNETES_RELEASE
=
$(
cat
"
${
KUBE_ROOT
}
/version"
)
DOWNLOAD_URL_PREFIX
=
"
${
KUBERNETES_RELEASE_URL
}
/
${
KUBERNETES_RELEASE
}
"
KUBE_VERSION
=
$(
cat
"
${
KUBE_ROOT
}
/version"
)
}
function
detect_client_info
()
{
...
...
@@ -153,6 +156,7 @@ function extract_arch_tarball() {
}
detect_kube_release
DOWNLOAD_URL_PREFIX
=
"
${
KUBERNETES_RELEASE_URL
}
/
${
KUBE_VERSION
}
"
SERVER_PLATFORM
=
"linux"
SERVER_ARCH
=
"
${
KUBERNETES_SERVER_ARCH
:-
amd64
}
"
...
...
@@ -161,7 +165,7 @@ SERVER_TAR="kubernetes-server-${SERVER_PLATFORM}-${SERVER_ARCH}.tar.gz"
detect_client_info
CLIENT_TAR
=
"kubernetes-client-
${
CLIENT_PLATFORM
}
-
${
CLIENT_ARCH
}
.tar.gz"
echo
"Kubernetes release:
${
KUBE
RNETES_RELEASE
}
"
echo
"Kubernetes release:
${
KUBE
_VERSION
}
"
echo
"Server:
${
SERVER_PLATFORM
}
/
${
SERVER_ARCH
}
(to override, set KUBERNETES_SERVER_ARCH)"
echo
"Client:
${
CLIENT_PLATFORM
}
/
${
CLIENT_ARCH
}
(autodetected)"
echo
...
...
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