mirror of https://github.com/linkerd/linkerd2.git
When running Linkerd check with a control plane namespace that may contain an additional pod with a replication controller ID for pod names instead of a replicaSet ID, the check command panics because of an "index out of bounds" error. This PR adds a check to make sure that, when parsing pod names during the `checkControllerRunning` healthcheck, we only check for linkerd control plane pods and that the pod name results in four or more substrings when split on '-'. This prevents the check from panicking when encountering a replication controller ID pod name. Fixes #2084 Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io> |
||
---|---|---|
.. | ||
healthcheck.go | ||
healthcheck_test.go | ||
sidecar.go | ||
version.go | ||
version_test.go |