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
ef3d5643
Commit
ef3d5643
authored
Oct 16, 2015
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix KUBE_TAR_URL issue and fix root cause; fixes #15738
parent
a379e52c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
common.sh
cluster/common.sh
+7
-16
get-build.sh
hack/get-build.sh
+8
-2
No files found.
cluster/common.sh
View file @
ef3d5643
...
@@ -255,10 +255,10 @@ function set_binary_version() {
...
@@ -255,10 +255,10 @@ function set_binary_version() {
# use local dev binaries.
# use local dev binaries.
#
#
# Assumed vars:
# Assumed vars:
# KUBE_VERSION
# KUBE_VERSION_REGEX
# KUBE_VERSION_REGEX
# KUBE_CI_VERSION_REGEX
# KUBE_CI_VERSION_REGEX
# Vars set:
# Vars set:
# KUBE_TAR_URL
# KUBE_TAR_HASH
# KUBE_TAR_HASH
# SERVER_BINARY_TAR_URL
# SERVER_BINARY_TAR_URL
# SERVER_BINARY_TAR_HASH
# SERVER_BINARY_TAR_HASH
...
@@ -269,36 +269,27 @@ function tars_from_version() {
...
@@ -269,36 +269,27 @@ function tars_from_version() {
find-release-tars
find-release-tars
upload-server-tars
upload-server-tars
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_VERSION_REGEX
}
]]
;
then
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_VERSION_REGEX
}
]]
;
then
KUBE_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes.tar.gz"
SERVER_BINARY_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes-server-linux-amd64.tar.gz"
SERVER_BINARY_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes-server-linux-amd64.tar.gz"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
KUBE_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes.tar.gz"
SERVER_BINARY_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes-server-linux-amd64.tar.gz"
SERVER_BINARY_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes-server-linux-amd64.tar.gz"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
else
else
echo
"Version doesn't match regexp"
>
&2
echo
"Version doesn't match regexp"
>
&2
exit
1
exit
1
fi
fi
until
KUBE_TAR_HASH
=
$(
curl
--fail
--silent
"
${
KUBE_TAR_URL
}
.sha1"
)
;
do
if
!
SERVER_BINARY_TAR_HASH
=
$(
curl
-Ss
--fail
"
${
SERVER_BINARY_TAR_URL
}
.sha1"
)
;
then
echo
"Failure trying to curl release .sha1"
done
until
SERVER_BINARY_TAR_HASH
=
$(
curl
--fail
--silent
"
${
SERVER_BINARY_TAR_URL
}
.sha1"
)
;
do
echo
"Failure trying to curl release .sha1"
echo
"Failure trying to curl release .sha1"
done
fi
until
SALT_TAR_HASH
=
$(
curl
--fail
--silent
"
${
SALT_TAR_URL
}
.sha1"
)
;
do
if
!
SALT_TAR_HASH
=
$(
curl
-Ss
--fail
"
${
SALT_TAR_URL
}
.sha1"
)
;
then
echo
"Failure trying to curl Salt tar .sha1"
echo
"Failure trying to curl Salt tar .sha1"
done
if
!
curl
-Ss
--range
0-1
"
${
KUBE_TAR_URL
}
"
>
&/dev/null
;
then
echo
"Can't find release at
${
KUBE_TAR_URL
}
"
>
&2
exit
1
fi
fi
if
!
curl
-Ss
--range
0-1
"
${
SERVER_BINARY_TAR_URL
}
"
>
&/dev/null
;
then
if
!
curl
-Ss
--head
"
${
SERVER_BINARY_TAR_URL
}
"
>
&/dev/null
;
then
echo
"Can't find release at
${
SERVER_BINARY_TAR_URL
}
"
>
&2
echo
"Can't find release at
${
SERVER_BINARY_TAR_URL
}
"
>
&2
exit
1
exit
1
fi
fi
if
!
curl
-Ss
--
range
0-1
"
${
SALT_TAR_URL
}
"
>
&/dev/null
;
then
if
!
curl
-Ss
--
head
"
${
SALT_TAR_URL
}
"
>
&/dev/null
;
then
echo
"Can't find Salt tar at
${
SALT_TAR_URL
}
"
>
&2
echo
"Can't find Salt tar at
${
SALT_TAR_URL
}
"
>
&2
exit
1
exit
1
fi
fi
...
...
hack/get-build.sh
View file @
ef3d5643
...
@@ -71,6 +71,12 @@ if [[ "${print_version}" == "true" ]]; then
...
@@ -71,6 +71,12 @@ if [[ "${print_version}" == "true" ]]; then
echo
"
${
KUBE_VERSION
}
"
echo
"
${
KUBE_VERSION
}
"
else
else
echo
"Using version at
${
1
}
:
${
KUBE_VERSION
}
"
>
&2
echo
"Using version at
${
1
}
:
${
KUBE_VERSION
}
"
>
&2
tars_from_version
if
[[
${
KUBE_VERSION
}
=
~
${
KUBE_VERSION_REGEX
}
]]
;
then
curl
--fail
-o
kubernetes-
${
KUBE_VERSION
}
.tar.gz
"
${
KUBE_TAR_URL
}
"
curl
--fail
-o
kubernetes-
${
KUBE_VERSION
}
.tar.gz
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes.tar.gz"
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
curl
--fail
-o
kubernetes-
${
KUBE_VERSION
}
.tar.gz
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes.tar.gz"
else
echo
"Version doesn't match regexp"
>
&2
exit
1
fi
fi
fi
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