From ccf4caf30f77c20ebe39fea6335eb7e2d432be43 Mon Sep 17 00:00:00 2001 From: Jingyi Hu Date: Tue, 29 Oct 2019 13:10:29 -0700 Subject: [PATCH] Update etcd.sh to use v3 endpoint --- hack/lib/etcd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/lib/etcd.sh b/hack/lib/etcd.sh index 13164f77a5b..c3d2fe98499 100755 --- a/hack/lib/etcd.sh +++ b/hack/lib/etcd.sh @@ -80,8 +80,8 @@ kube::etcd::start() { ETCD_PID=$! echo "Waiting for etcd to come up." - kube::util::wait_for_url "${KUBE_INTEGRATION_ETCD_URL}/v2/machines" "etcd: " 0.25 80 - curl -fs -X PUT "${KUBE_INTEGRATION_ETCD_URL}/v2/keys/_test" + kube::util::wait_for_url "${KUBE_INTEGRATION_ETCD_URL}/health" "etcd: " 0.25 80 + curl -fs -X POST "${KUBE_INTEGRATION_ETCD_URL}/v3/kv/put" -d '{"key": "X3Rlc3Q=", "value": ""}' } kube::etcd::stop() {