Unverified Commit 76e9fdaa authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #67402 from SneakyFish5/etcd-error-message

Automatic merge from submit-queue (batch tested with PRs 65561, 67109, 67450, 67456, 67402). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Better error message if etcd not installed **What this PR does / why we need it**: Add an error message to install etcd if command check fails instead of just saying to add etcd to PATH. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 92fc828d 861ab506
...@@ -24,6 +24,7 @@ kube::etcd::validate() { ...@@ -24,6 +24,7 @@ kube::etcd::validate() {
# validate if in path # validate if in path
command -v etcd >/dev/null || { command -v etcd >/dev/null || {
kube::log::usage "etcd must be in your PATH" kube::log::usage "etcd must be in your PATH"
kube::log::info "You can use 'hack/install-etcd.sh' to install a copy in third_party/."
exit 1 exit 1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment