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
09f48a78
Commit
09f48a78
authored
Jan 12, 2019
by
Benjamin Elder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix get-kube.sh
parent
a901dd3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
get-kube.sh
cluster/get-kube.sh
+5
-10
No files found.
cluster/get-kube.sh
View file @
09f48a78
...
@@ -85,10 +85,11 @@ KUBE_CI_VERSION_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)-([a
...
@@ -85,10 +85,11 @@ KUBE_CI_VERSION_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)-([a
# KUBE_VERSION
# KUBE_VERSION
function
set_binary_version
()
{
function
set_binary_version
()
{
if
[[
"
${
1
}
"
=
~
"/"
]]
;
then
if
[[
"
${
1
}
"
=
~
"/"
]]
;
then
export
KUBE_VERSION
=
$(
curl
-fsSL
--retry
5
"https://dl.k8s.io/
${
1
}
.txt"
)
KUBE_VERSION
=
$(
curl
-fsSL
--retry
5
"https://dl.k8s.io/
${
1
}
.txt"
)
else
else
export
KUBE_VERSION
=
${
1
}
KUBE_VERSION
=
${
1
}
fi
fi
export
KUBE_VERSION
}
}
# Use the script from inside the Kubernetes tarball to fetch the client and
# Use the script from inside the Kubernetes tarball to fetch the client and
...
@@ -129,7 +130,7 @@ fi
...
@@ -129,7 +130,7 @@ fi
if
[[
-d
"./kubernetes"
]]
;
then
if
[[
-d
"./kubernetes"
]]
;
then
if
[[
-z
"
${
KUBERNETES_SKIP_CONFIRM
-
}
"
]]
;
then
if
[[
-z
"
${
KUBERNETES_SKIP_CONFIRM
-
}
"
]]
;
then
echo
"'kubernetes' directory already exist. Should we skip download step and start to create cluster based on it? [Y]/n"
echo
"'kubernetes' directory already exist. Should we skip download step and start to create cluster based on it? [Y]/n"
read
confirm
read
-r
confirm
if
[[
!
"
${
confirm
}
"
=
~ ^[nN]
$
]]
;
then
if
[[
!
"
${
confirm
}
"
=
~ ^[nN]
$
]]
;
then
echo
"Skipping download step."
echo
"Skipping download step."
create_cluster
create_cluster
...
@@ -143,10 +144,8 @@ fi
...
@@ -143,10 +144,8 @@ fi
kernel
=
$(
uname
-s
)
kernel
=
$(
uname
-s
)
case
"
${
kernel
}
"
in
case
"
${
kernel
}
"
in
Darwin
)
Darwin
)
platform
=
"darwin"
;;
;;
Linux
)
Linux
)
platform
=
"linux"
;;
;;
*
)
*
)
echo
"Unknown, unsupported platform:
${
kernel
}
."
>
&2
echo
"Unknown, unsupported platform:
${
kernel
}
."
>
&2
...
@@ -158,16 +157,12 @@ esac
...
@@ -158,16 +157,12 @@ esac
machine
=
$(
uname
-m
)
machine
=
$(
uname
-m
)
case
"
${
machine
}
"
in
case
"
${
machine
}
"
in
x86_64
*
|
i?86_64
*
|
amd64
*
)
x86_64
*
|
i?86_64
*
|
amd64
*
)
arch
=
"amd64"
;;
;;
aarch64
*
|
arm64
*
)
aarch64
*
|
arm64
*
)
arch
=
"arm64"
;;
;;
arm
*
)
arm
*
)
arch
=
"arm"
;;
;;
i?86
*
)
i?86
*
)
arch
=
"386"
;;
;;
*
)
*
)
echo
"Unknown, unsupported architecture (
${
machine
}
)."
>
&2
echo
"Unknown, unsupported architecture (
${
machine
}
)."
>
&2
...
@@ -224,7 +219,7 @@ fi
...
@@ -224,7 +219,7 @@ fi
if
[[
-z
"
${
KUBERNETES_SKIP_CONFIRM
-
}
"
]]
;
then
if
[[
-z
"
${
KUBERNETES_SKIP_CONFIRM
-
}
"
]]
;
then
echo
"Is this ok? [Y]/n"
echo
"Is this ok? [Y]/n"
read
confirm
read
-r
confirm
if
[[
"
${
confirm
}
"
=
~ ^[nN]
$
]]
;
then
if
[[
"
${
confirm
}
"
=
~ ^[nN]
$
]]
;
then
echo
"Aborting."
echo
"Aborting."
exit
0
exit
0
...
...
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