Merge pull request #37826 from danwinship/etcd-path

Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)

Fix the PATH that install-etcd.sh tells you to use

After you run install-etcd.sh, it tells you:

    etcd v3.0.14 installed. To use:
    export PATH=${PATH}:/home/danw/rh/go/src/k8s.io/kubernetes/third_party/etcd

which doesn't work if you have an older etcd installed in /usr/bin:

    danw@w541:kubernetes (master)> PATH=${PATH}:/home/danw/rh/go/src/k8s.io/kubernetes/third_party/etcd etcd --version
    etcd Version: 2.2.5

You need to put the local etcd dir first in PATH, not last.
This commit is contained in:
Kubernetes Submit Queue 2016-12-03 04:27:53 -08:00 committed by GitHub
commit 69170e7243

2
hack/lib/etcd.sh Normal file → Executable file
View File

@ -87,6 +87,6 @@ kube::etcd::install() {
ln -fns "etcd-v${ETCD_VERSION}-linux-amd64" etcd
fi
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
kube::log::info "export PATH=\${PATH}:$(pwd)/etcd"
kube::log::info "export PATH=$(pwd)/etcd:\${PATH}"
)
}