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
ee1d4803
Commit
ee1d4803
authored
Jun 29, 2016
by
Zach Loafman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge pull request #28193 from zmerlynn/pull-ci-elsewhere"
This reverts commit
d965b471
, reversing changes made to
08a28e51
.
parent
d30fd0cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
29 deletions
+20
-29
common.sh
cluster/common.sh
+5
-10
upgrade.sh
cluster/gce/upgrade.sh
+1
-1
getting-builds.md
docs/devel/getting-builds.md
+3
-3
get-build.sh
hack/get-build.sh
+1
-2
e2e-runner.sh
hack/jenkins/e2e-runner.sh
+10
-13
No files found.
cluster/common.sh
View file @
ee1d4803
...
...
@@ -292,7 +292,7 @@ function detect-master-from-kubeconfig() {
# Sets KUBE_VERSION variable to the proper version number (e.g. "v1.0.6",
# "v1.2.0-alpha.1.881+376438b69c7612") or a version' publication of the form
# <
path
>/<version> (e.g. "release/stable",' "ci/latest-1").
# <
bucket
>/<version> (e.g. "release/stable",' "ci/latest-1").
#
# See the docs on getting builds for more information about version
# publication.
...
...
@@ -303,12 +303,7 @@ function detect-master-from-kubeconfig() {
# KUBE_VERSION
function
set_binary_version
()
{
if
[[
"
${
1
}
"
=
~
"/"
]]
;
then
IFS
=
'/'
read
-a
path
<<<
"
${
1
}
"
if
[[
"
${
path
[0]
}
"
==
"release"
]]
;
then
KUBE_VERSION
=
$(
gsutil
cat
"gs://kubernetes-release/
${
1
}
.txt"
)
else
KUBE_VERSION
=
$(
gsutil
cat
"gs://kubernetes-release-dev/
${
1
}
.txt"
)
fi
KUBE_VERSION
=
$(
gsutil
cat
gs://kubernetes-release/
${
1
}
.txt
)
else
KUBE_VERSION
=
${
1
}
fi
...
...
@@ -339,8 +334,8 @@ function tars_from_version() {
KUBE_MANIFESTS_TAR_URL
=
"
${
SERVER_BINARY_TAR_URL
/server-linux-amd64/manifests
}
"
KUBE_MANIFESTS_TAR_HASH
=
$(
curl
${
KUBE_MANIFESTS_TAR_URL
}
|
sha1sum
|
awk
'{print $1}'
)
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
SERVER_BINARY_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release
-dev
/ci/
${
KUBE_VERSION
}
/kubernetes-server-linux-amd64.tar.gz"
SALT_TAR_URL
=
"https://storage.googleapis.com/kubernetes-release
-dev
/ci/
${
KUBE_VERSION
}
/kubernetes-salt.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"
# TODO: Clean this up.
KUBE_MANIFESTS_TAR_URL
=
"
${
SERVER_BINARY_TAR_URL
/server-linux-amd64/manifests
}
"
KUBE_MANIFESTS_TAR_HASH
=
$(
curl
${
KUBE_MANIFESTS_TAR_URL
}
|
sha1sum
|
awk
'{print $1}'
)
...
...
@@ -489,7 +484,7 @@ function build-runtime-config() {
if
[[
-n
${
appends
}
]]
;
then
if
[[
-n
${
RUNTIME_CONFIG
}
]]
;
then
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,
${
appends
}
"
else
else
RUNTIME_CONFIG
=
"
${
appends
}
"
fi
fi
...
...
cluster/gce/upgrade.sh
View file @
ee1d4803
...
...
@@ -59,7 +59,7 @@ function usage() {
release_stable
=
$(
gsutil
cat
gs://kubernetes-release/release/stable.txt
)
release_latest
=
$(
gsutil
cat
gs://kubernetes-release/release/latest.txt
)
ci_latest
=
$(
gsutil
cat
gs://kubernetes-release
-dev
/ci/latest.txt
)
ci_latest
=
$(
gsutil
cat
gs://kubernetes-release/ci/latest.txt
)
echo
"Right now, versions are as follows:"
echo
" release/stable:
${
0
}
${
release_stable
}
"
...
...
docs/devel/getting-builds.md
View file @
ee1d4803
...
...
@@ -59,9 +59,9 @@ Finally, you can just print the latest or stable version:
You can also use the gsutil tool to explore the Google Cloud Storage release buckets. Here are some examples:
```
sh
gsutil
cat
gs://kubernetes-release
-dev
/ci/latest.txt
# output the latest ci version number
gsutil
cat
gs://kubernetes-release
-dev
/ci/latest-green.txt
# output the latest ci version number that passed gce e2e
gsutil
ls
gs://kubernetes-release
-dev
/ci/v0.20.0-29-g29a55cc/
# list the contents of a ci release
gsutil
cat
gs://kubernetes-release/ci/latest.txt
# output the latest ci version number
gsutil
cat
gs://kubernetes-release/ci/latest-green.txt
# output the latest ci version number that passed gce e2e
gsutil
ls
gs://kubernetes-release/ci/v0.20.0-29-g29a55cc/
# list the contents of a ci release
gsutil
ls
gs://kubernetes-release/release
# list all official releases and rcs
```
...
...
hack/get-build.sh
View file @
ee1d4803
...
...
@@ -23,7 +23,6 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source
"
${
KUBE_ROOT
}
/cluster/common.sh"
declare
-r
KUBE_RELEASE_BUCKET_URL
=
"https://storage.googleapis.com/kubernetes-release"
declare
-r
KUBE_DEV_RELEASE_BUCKET_URL
=
"https://storage.googleapis.com/kubernetes-release-dev"
declare
-r
KUBE_TAR_NAME
=
"kubernetes.tar.gz"
usage
()
{
...
...
@@ -75,7 +74,7 @@ else
if
[[
${
KUBE_VERSION
}
=
~
${
KUBE_RELEASE_VERSION_REGEX
}
]]
;
then
curl
--fail
-o
"kubernetes-
${
KUBE_VERSION
}
.tar.gz"
"
${
KUBE_RELEASE_BUCKET_URL
}
/release/
${
KUBE_VERSION
}
/
${
KUBE_TAR_NAME
}
"
elif
[[
${
KUBE_VERSION
}
=
~
${
KUBE_CI_VERSION_REGEX
}
]]
;
then
curl
--fail
-o
"kubernetes-
${
KUBE_VERSION
}
.tar.gz"
"
${
KUBE_
DEV_
RELEASE_BUCKET_URL
}
/ci/
${
KUBE_VERSION
}
/
${
KUBE_TAR_NAME
}
"
curl
--fail
-o
"kubernetes-
${
KUBE_VERSION
}
.tar.gz"
"
${
KUBE_RELEASE_BUCKET_URL
}
/ci/
${
KUBE_VERSION
}
/
${
KUBE_TAR_NAME
}
"
else
echo
"Version doesn't match regexp"
>
&2
exit
1
...
...
hack/jenkins/e2e-runner.sh
View file @
ee1d4803
...
...
@@ -22,7 +22,6 @@ set -o pipefail
set
-o
xtrace
:
${
KUBE_GCS_RELEASE_BUCKET
:
=
"kubernetes-release"
}
:
${
KUBE_GCS_DEV_RELEASE_BUCKET
:
=
"kubernetes-release-dev"
}
function
running_in_docker
()
{
grep
-q
docker /proc/self/cgroup
...
...
@@ -48,15 +47,10 @@ function fetch_server_version_tars() {
function
fetch_published_version_tars
()
{
local
-r
published_version
=
"
${
1
}
"
IFS
=
'/'
read
-a
varr
<<<
"
${
published_version
}
"
path
=
"
${
varr
[0]
}
"
if
[[
"
${
path
}
"
==
"release"
]]
;
then
local
-r
bucket
=
"
${
KUBE_GCS_RELEASE_BUCKET
}
"
else
local
-r
bucket
=
"
${
KUBE_GCS_DEV_RELEASE_BUCKET
}
"
fi
build_version
=
$(
gsutil
cat
"gs://
${
bucket
}
/
${
published_version
}
.txt"
)
bucket
=
"
${
varr
[0]
}
"
build_version
=
$(
gsutil
cat
gs://
${
KUBE_GCS_RELEASE_BUCKET
}
/
${
published_version
}
.txt
)
echo
"Using published version
$bucket
/
$build_version
(from
${
published_version
}
)"
fetch_tars_from_gcs
"
gs://
${
bucket
}
/
${
path
}
"
"
${
build_version
}
"
fetch_tars_from_gcs
"
${
bucket
}
"
"
${
build_version
}
"
unpack_binaries
# Set CLUSTER_API_VERSION for GKE CI
export
CLUSTER_API_VERSION
=
$(
echo
${
build_version
}
|
cut
-c
2-
)
...
...
@@ -70,10 +64,13 @@ function clean_binaries() {
}
function
fetch_tars_from_gcs
()
{
local
-r
gspath
=
"
${
1
}
"
local
-r
bucket
=
"
${
1
}
"
local
-r
build_version
=
"
${
2
}
"
echo
"Pulling binaries from GCS; using server version
${
gspath
}
/
${
build_version
}
."
gsutil
-mq
cp
"
${
gspath
}
/
${
build_version
}
/kubernetes.tar.gz"
"
${
gspath
}
/
${
build_version
}
/kubernetes-test.tar.gz"
.
echo
"Pulling binaries from GCS; using server version
${
bucket
}
/
${
build_version
}
."
gsutil
-mq
cp
\
"gs://
${
KUBE_GCS_RELEASE_BUCKET
}
/
${
bucket
}
/
${
build_version
}
/kubernetes.tar.gz"
\
"gs://
${
KUBE_GCS_RELEASE_BUCKET
}
/
${
bucket
}
/
${
build_version
}
/kubernetes-test.tar.gz"
\
.
}
function
unpack_binaries
()
{
...
...
@@ -193,7 +190,7 @@ function e2e_test() {
if
[[
"
${
E2E_PUBLISH_GREEN_VERSION
:-}
"
==
"true"
&&
${
exitcode
}
==
0
]]
;
then
# Use plaintext version file packaged with kubernetes.tar.gz
echo
"Publish version to ci/latest-green.txt:
$(
cat
version
)
"
gsutil
cp
./version
"gs://
${
KUBE_GCS_DEV_RELEASE_BUCKET
}
/ci/latest-green.txt"
gsutil
cp
./version
gs://kubernetes-release/ci/latest-green.txt
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