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
543c2c20
Commit
543c2c20
authored
Oct 27, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update etcd in tests to 3.0.13
parent
91329652
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
Dockerfile
build-tools/build-image/cross/Dockerfile
+1
-1
VERSION
build-tools/build-image/cross/VERSION
+1
-1
Makefile
cluster/images/etcd/Makefile
+3
-3
migrate-if-needed.sh
cluster/images/etcd/migrate-if-needed.sh
+4
-4
etcd.sh
hack/lib/etcd.sh
+1
-1
test-update-storage-objects.sh
hack/test-update-storage-objects.sh
+1
-1
No files found.
build-tools/build-image/cross/Dockerfile
View file @
543c2c20
...
@@ -72,7 +72,7 @@ RUN mkdir $TMPDIR \
...
@@ -72,7 +72,7 @@ RUN mkdir $TMPDIR \
github.com/jteeuwen/go-bindata/go-bindata
github.com/jteeuwen/go-bindata/go-bindata
# Download and symlink etcd. We need this for our integration tests.
# Download and symlink etcd. We need this for our integration tests.
RUN
export
ETCD_VERSION
=
v3.0.1
0
;
\
RUN
export
ETCD_VERSION
=
v3.0.1
3
;
\
mkdir
-p
/usr/local/src/etcd
\
mkdir
-p
/usr/local/src/etcd
\
&&
cd
/usr/local/src/etcd
\
&&
cd
/usr/local/src/etcd
\
&&
curl
-fsSL
https://github.com/coreos/etcd/releases/download/
${
ETCD_VERSION
}
/etcd-
${
ETCD_VERSION
}
-linux-amd64
.tar.gz |
tar
-xz
\
&&
curl
-fsSL
https://github.com/coreos/etcd/releases/download/
${
ETCD_VERSION
}
/etcd-
${
ETCD_VERSION
}
-linux-amd64
.tar.gz |
tar
-xz
\
...
...
build-tools/build-image/cross/VERSION
View file @
543c2c20
v1.7.1-
0
v1.7.1-
2
cluster/images/etcd/Makefile
View file @
543c2c20
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
# Build the etcd image
# Build the etcd image
#
#
# Usage:
# Usage:
# [TAGS=2.2.1 2.3.7 3.0.1
2
] [REGISTRY=gcr.io/google_containers] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
# [TAGS=2.2.1 2.3.7 3.0.1
3
] [REGISTRY=gcr.io/google_containers] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
# The image contains different etcd versions to simplify
# The image contains different etcd versions to simplify
# upgrades. Thus be careful when removing any tag from here.
# upgrades. Thus be careful when removing any tag from here.
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
# Except from etcd-$(tag) and etcdctl-$(tag) binaries, we also
# Except from etcd-$(tag) and etcdctl-$(tag) binaries, we also
# need etcd and etcdctl binaries for backward compatibility reasons.
# need etcd and etcdctl binaries for backward compatibility reasons.
# That binary will be set to the last tag from $(TAGS).
# That binary will be set to the last tag from $(TAGS).
TAGS
?=
2.2.1 2.3.7 3.0.1
2
TAGS
?=
2.2.1 2.3.7 3.0.1
3
REGISTRY_TAG
?=
3.0.1
2
REGISTRY_TAG
?=
3.0.1
3
ARCH
?=
amd64
ARCH
?=
amd64
REGISTRY
?=
gcr.io/google_containers
REGISTRY
?=
gcr.io/google_containers
GOLANG_VERSION
?=
1.6.3
GOLANG_VERSION
?=
1.6.3
...
...
cluster/images/etcd/migrate-if-needed.sh
View file @
543c2c20
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# This script performs etcd upgrade based on the following environmental
# This script performs etcd upgrade based on the following environmental
# variables:
# variables:
# TARGET_STORAGE - API of etcd to be used (supported: 'etcd2', 'etcd3')
# TARGET_STORAGE - API of etcd to be used (supported: 'etcd2', 'etcd3')
# TARGET_VERSION - etcd release to be used (supported: '2.2.1', '2.3.7', '3.0.1
2
')
# TARGET_VERSION - etcd release to be used (supported: '2.2.1', '2.3.7', '3.0.1
3
')
# DATA_DIRECTORY - directory with etcd data
# DATA_DIRECTORY - directory with etcd data
#
#
# The current etcd version and storage format is detected based on the
# The current etcd version and storage format is detected based on the
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
#
#
# The update workflow support the following upgrade steps:
# The update workflow support the following upgrade steps:
# - 2.2.1/etcd2 -> 2.3.7/etcd2
# - 2.2.1/etcd2 -> 2.3.7/etcd2
# - 2.3.7/etcd2 -> 3.0.1
2
/etcd2
# - 2.3.7/etcd2 -> 3.0.1
3
/etcd2
# - 3.0.1
2/etcd2 -> 3.0.12
/etcd3
# - 3.0.1
3/etcd2 -> 3.0.13
/etcd3
#
#
# NOTE: The releases supported in this script has to match release binaries
# NOTE: The releases supported in this script has to match release binaries
# present in the etcd image (to make this script work correctly).
# present in the etcd image (to make this script work correctly).
...
@@ -60,7 +60,7 @@ fi
...
@@ -60,7 +60,7 @@ fi
# NOTE: SUPPORTED_VERSION has to match release binaries present in the
# NOTE: SUPPORTED_VERSION has to match release binaries present in the
# etcd image (to make this script work correctly).
# etcd image (to make this script work correctly).
# We cannot use array since sh doesn't support it.
# We cannot use array since sh doesn't support it.
SUPPORTED_VERSIONS_STRING
=
"2.2.1 2.3.7 3.0.1
2
"
SUPPORTED_VERSIONS_STRING
=
"2.2.1 2.3.7 3.0.1
3
"
SUPPORTED_VERSIONS
=
$(
echo
"
${
SUPPORTED_VERSIONS_STRING
}
"
|
tr
" "
"
\n
"
)
SUPPORTED_VERSIONS
=
$(
echo
"
${
SUPPORTED_VERSIONS_STRING
}
"
|
tr
" "
"
\n
"
)
VERSION_FILE
=
"version.txt"
VERSION_FILE
=
"version.txt"
...
...
hack/lib/etcd.sh
View file @
543c2c20
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# A set of helpers for starting/running etcd for tests
# A set of helpers for starting/running etcd for tests
ETCD_VERSION
=
${
ETCD_VERSION
:-
3
.0.1
0
}
ETCD_VERSION
=
${
ETCD_VERSION
:-
3
.0.1
3
}
ETCD_HOST
=
${
ETCD_HOST
:-
127
.0.0.1
}
ETCD_HOST
=
${
ETCD_HOST
:-
127
.0.0.1
}
ETCD_PORT
=
${
ETCD_PORT
:-
2379
}
ETCD_PORT
=
${
ETCD_PORT
:-
2379
}
...
...
hack/test-update-storage-objects.sh
View file @
543c2c20
...
@@ -160,7 +160,7 @@ killApiServer
...
@@ -160,7 +160,7 @@ killApiServer
kube::etcd::stop
kube::etcd::stop
TARGET_STORAGE
=
"etcd3"
\
TARGET_STORAGE
=
"etcd3"
\
TARGET_VERSION
=
"3.0.1
2
"
\
TARGET_VERSION
=
"3.0.1
3
"
\
DATA_DIRECTORY
=
"
${
ETCD_DIR
}
"
\
DATA_DIRECTORY
=
"
${
ETCD_DIR
}
"
\
ETCD
=
$(
which etcd
)
\
ETCD
=
$(
which etcd
)
\
ETCDCTL
=
$(
which etcdctl
)
\
ETCDCTL
=
$(
which etcdctl
)
\
...
...
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