linkerd2/pkg
Dennis Adjei-Baah 20efe14fef
Fix issue where linkerd check would panic with replicationcontroller pod name in control plane (#2140)
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>
2019-01-24 10:26:11 -08:00
..
addr Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
admin Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
filesonly Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
flags Send glog logs to stderr by default (#1367) 2018-07-25 12:59:24 -07:00
healthcheck Fix issue where linkerd check would panic with replicationcontroller pod name in control plane (#2140) 2019-01-24 10:26:11 -08:00
k8s Follow up to #2054: move magic strings into constants (#2122) 2019-01-22 14:53:24 -05:00
profiles Add support for retries (#2038) 2019-01-16 14:13:48 -08:00
prometheus Fix most golint issues that are not comment related (#1982) 2018-12-20 10:37:47 -08:00
tls Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00
util Add go linting to CI config (#2018) 2018-12-20 15:33:09 -08:00
version Introduce version consistency checks (#2130) 2019-01-23 16:54:43 -08:00