Merge pull request #44865 from wongma7/validate-etcd

Automatic merge from submit-queue (batch tested with PRs 40060, 44860, 44865, 44825, 44162)

Validate etcd only when expecting to run etcd

If running kubelet only, there is no need to validate etcd as the script will not attempt to start etcd. In fact, validating etcd here may cause the script to fail when one wants to run "nokubelet" right before "kubeletonly" because etcd will definitely be running
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-04-24 23:07:42 -07:00 committed by GitHub
commit 08deaf2b98

View File

@ -806,7 +806,9 @@ fi
}
# validate that etcd is: not running, in path, and has minimum required version.
kube::etcd::validate
if [[ "${START_MODE}" != "kubeletonly" ]]; then
kube::etcd::validate
fi
if [ "${CONTAINER_RUNTIME}" == "docker" ] && ! kube::util::ensure_docker_daemon_connectivity; then
exit 1