Commit 2bd777e9 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40502 from alindeman/etcd-false-positive

Automatic merge from submit-queue (batch tested with PRs 41121, 40048, 40502, 41136, 40759) Match etcd process name exactly A process named, e.g., etcd-operator, should not match **What this PR does / why we need it**: Matches etcd process name exactly **Which issue this PR fixes**: fixes #40499 **Special notes for your reviewer**: 👀 @lavalamp
parents b7772e4f 79d28389
......@@ -28,8 +28,8 @@ kube::etcd::validate() {
}
# validate it is not running
if pgrep etcd >/dev/null 2>&1; then
kube::log::usage "etcd appears to already be running on this machine (`pgrep -l etcd`) (or its a zombie and you need to kill its parent)."
if pgrep -x etcd >/dev/null 2>&1; then
kube::log::usage "etcd appears to already be running on this machine (`pgrep -xl etcd`) (or its a zombie and you need to kill its parent)."
kube::log::usage "retry after you resolve this etcd error."
exit 1
fi
......
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