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
b255e7c4
Commit
b255e7c4
authored
Oct 16, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15793 from ihmccreery/fix-push
Auto commit by PR queue bot
parents
916ddbca
ef3d5643
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
144 deletions
+42
-144
util.sh
cluster/aws/util.sh
+0
-25
util.sh
cluster/azure/util.sh
+0
-26
common.sh
cluster/common.sh
+33
-16
util.sh
cluster/gce/util.sh
+0
-25
util.sh
cluster/libvirt-coreos/util.sh
+0
-11
util.sh
cluster/rackspace/util.sh
+1
-14
util.sh
cluster/vsphere/util.sh
+0
-25
get-build.sh
hack/get-build.sh
+8
-2
No files found.
cluster/aws/util.sh
View file @
b255e7c4
...
...
@@ -471,31 +471,6 @@ function ensure-temp-dir {
fi
}
# Verify and find the various tar files that we are going to use on the server.
#
# Vars set:
# SERVER_BINARY_TAR
# SALT_TAR
function
find-release-tars
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
exit
1
fi
SALT_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-salt.tar.gz"
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
SALT_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-salt.tar.gz"
fi
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-salt.tar.gz"
exit
1
fi
}
# Take the local tar files and upload them to S3. They will then be
# downloaded by the master as part of the start up script for the master.
#
...
...
cluster/azure/util.sh
View file @
b255e7c4
...
...
@@ -94,32 +94,6 @@ function ensure-temp-dir {
fi
}
# Verify and find the various tar files that we are going to use on the server.
#
# Vars set:
# SERVER_BINARY_TAR
# SALT_TAR
function
find-release-tars
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
exit
1
fi
SALT_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-salt.tar.gz"
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
SALT_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-salt.tar.gz"
fi
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-salt.tar.gz"
exit
1
fi
}
# Take the local tar files and upload them to Azure Storage. They will then be
# downloaded by the master as part of the start up script for the master.
#
...
...
cluster/common.sh
View file @
b255e7c4
...
...
@@ -255,10 +255,10 @@ function set_binary_version() {
# use local dev binaries.
#
# Assumed vars:
# KUBE_VERSION
# KUBE_VERSION_REGEX
# KUBE_CI_VERSION_REGEX
# Vars set:
# KUBE_TAR_URL
# KUBE_TAR_HASH
# SERVER_BINARY_TAR_URL
# SERVER_BINARY_TAR_HASH
...
...
@@ -269,38 +269,55 @@ function tars_from_version() {
find-release-tars
upload-server-tars
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"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
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"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release/ci/
${
KUBE_VERSION
}
/kubernetes-salt.tar.gz"
else
echo
"Version doesn't match regexp"
>
&2
exit
1
fi
until
KUBE_TAR_HASH
=
$(
curl
--fail
--silent
"
${
KUBE_TAR_URL
}
.sha1"
)
;
do
echo
"Failure trying to curl release .sha1"
done
until
SERVER_BINARY_TAR_HASH
=
$(
curl
--fail
--silent
"
${
SERVER_BINARY_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
SALT_TAR_HASH
=
$(
curl
--fail
--silent
"
${
SALT_TAR_URL
}
.sha1"
)
;
do
fi
if
!
SALT_TAR_HASH
=
$(
curl
-Ss
--fail
"
${
SALT_TAR_URL
}
.sha1"
)
;
then
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
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
exit
1
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
exit
1
fi
}
# Verify and find the various tar files that we are going to use on the server.
#
# Assumed vars:
# KUBE_ROOT
# Vars set:
# SERVER_BINARY_TAR
# SALT_TAR
function
find-release-tars
()
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
>
&2
exit
1
fi
SALT_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-salt.tar.gz"
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
SALT_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-salt.tar.gz"
fi
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-salt.tar.gz"
>
&2
exit
1
fi
}
cluster/gce/util.sh
View file @
b255e7c4
...
...
@@ -115,31 +115,6 @@ function ensure-temp-dir {
fi
}
# Verify and find the various tar files that we are going to use on the server.
#
# Vars set:
# SERVER_BINARY_TAR
# SALT_TAR
function
find-release-tars
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
>
&2
exit
1
fi
SALT_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-salt.tar.gz"
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
SALT_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-salt.tar.gz"
fi
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-salt.tar.gz"
>
&2
exit
1
fi
}
# Use the gcloud defaults to find the project. If it is already set in the
# environment then go with that.
#
...
...
cluster/libvirt-coreos/util.sh
View file @
b255e7c4
...
...
@@ -250,17 +250,6 @@ function kube-down {
destroy-network
}
function
find-release-tars
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
exit
1
fi
}
# The kubernetes binaries are pushed to a host directory which is exposed to the VM
function
upload-server-tars
{
tar
-x
-C
"
$POOL_PATH
/kubernetes"
-f
"
$SERVER_BINARY_TAR
"
kubernetes
...
...
cluster/rackspace/util.sh
View file @
b255e7c4
...
...
@@ -66,19 +66,6 @@ rax-ssh-key() {
fi
}
find-release-tars
()
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
RELEASE_DIR
=
"
${
KUBE_ROOT
}
/server/"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
RELEASE_DIR
=
"
${
KUBE_ROOT
}
/_output/release-tars/"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
exit
1
fi
}
rackspace-set-vars
()
{
CLOUDFILES_CONTAINER
=
"kubernetes-releases-
${
OS_USERNAME
}
"
...
...
@@ -114,7 +101,7 @@ ensure_dev_container() {
copy_dev_tarballs
()
{
echo
"cluster/rackspace/util.sh: Uploading to Cloud Files"
${
SWIFTLY_CMD
}
put
-i
${
RELEASE_DIR
}
/kubernetes-server-linux-amd64.tar.gz
\
${
SWIFTLY_CMD
}
put
-i
${
SERVER_BINARY_TAR
}
\
${
CLOUDFILES_CONTAINER
}
/
${
CONTAINER_PREFIX
}
/kubernetes-server-linux-amd64.tar.gz
>
/dev/null 2>&1
echo
"Release pushed."
...
...
cluster/vsphere/util.sh
View file @
b255e7c4
...
...
@@ -126,31 +126,6 @@ function ensure-temp-dir {
fi
}
# Verify and find the various tar files that we are going to use on the server.
#
# Vars set:
# SERVER_BINARY_TAR
# SALT_TAR
function
find-release-tars
{
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-server-linux-amd64.tar.gz"
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
SERVER_BINARY_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-server-linux-amd64.tar.gz"
fi
if
[[
!
-f
"
$SERVER_BINARY_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-server-linux-amd64.tar.gz"
exit
1
fi
SALT_TAR
=
"
${
KUBE_ROOT
}
/server/kubernetes-salt.tar.gz"
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
SALT_TAR
=
"
${
KUBE_ROOT
}
/_output/release-tars/kubernetes-salt.tar.gz"
fi
if
[[
!
-f
"
$SALT_TAR
"
]]
;
then
echo
"!!! Cannot find kubernetes-salt.tar.gz"
exit
1
fi
}
# Take the local tar files and upload them to the master.
#
# Assumed vars:
...
...
hack/get-build.sh
View file @
b255e7c4
...
...
@@ -71,6 +71,12 @@ if [[ "${print_version}" == "true" ]]; then
echo
"
${
KUBE_VERSION
}
"
else
echo
"Using version at
${
1
}
:
${
KUBE_VERSION
}
"
>
&2
tars_from_version
curl
--fail
-o
kubernetes-
${
KUBE_VERSION
}
.tar.gz
"
${
KUBE_TAR_URL
}
"
if
[[
${
KUBE_VERSION
}
=
~
${
KUBE_VERSION_REGEX
}
]]
;
then
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
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