Support for TTLs in etcd migration.

This commit is contained in:
Wojciech Tyczynski
2016-08-23 12:02:41 +02:00
parent 8705a41c56
commit 793d3acd8b
7 changed files with 128 additions and 5 deletions

View File

@@ -100,6 +100,7 @@ function cleanup() {
trap cleanup EXIT SIGINT
make -C "${KUBE_ROOT}" WHAT=cmd/kube-apiserver
make -C "${KUBE_ROOT}" WHAT=cluster/images/etcd/attachlease
kube::etcd::start
@@ -159,7 +160,9 @@ killApiServer
kube::etcd::stop
TARGET_STORAGE="etcd3" \
DATA_DIRECTORY="${ETCD_DIR}" \
ETCD=$(which etcd) \
ETCDCTL=$(which etcdctl) \
ATTACHLEASE="${KUBE_OUTPUT_HOSTBIN}/attachlease" \
${KUBE_ROOT}/cluster/images/etcd/migrate-if-needed.sh
kube::etcd::start