linkerd2/pkg/healthcheck
Alex Leong 33ddd4e357
Use correct component name in multicluster checks (#4921)
The multicluster checks make sure that the correct resources exist for each service mirror controller.  When looking up these resources, it uses the `linkerd.io/control-plane-component=linkerd-service-mirror` label selector.  However, these resources have the label `linkerd.io/control-plane-component=service-mirror`.  This causes the resource lookup to fail to find the resource and the check spuriously fails.

```
× service mirror controller has required permissions
    missing ServiceAccounts: linkerd-service-mirror-self
missing ClusterRoles: linkerd-service-mirror-access-local-resources-self
missing ClusterRoleBindings: linkerd-service-mirror-access-local-resources-self
missing Roles: linkerd-service-mirror-read-remote-creds-self
missing RoleBindings: linkerd-service-mirror-read-remote-creds-self
    see https://linkerd.io/checks/#l5d-multicluster-source-rbac-correct for hints
|         * no service mirror controller deployment for Link self
```

Instead, use the correct label selector when looking up these resources.

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-08-31 13:40:53 -07:00
..
healthcheck.go Triger kube-system HA check based on webhook failure policy (#4861) 2020-08-17 13:56:03 +03:00
healthcheck_addons.go grafana: move default values into values file (#4755) 2020-08-06 13:57:28 -07:00
healthcheck_multicluster.go Use correct component name in multicluster checks (#4921) 2020-08-31 13:40:53 -07:00
healthcheck_test.go Remove SMI-Metrics charts and commands (#4843) 2020-08-24 14:35:33 -07:00
sidecar.go Remove envoy, contour restrictions (#4092) 2020-03-02 09:18:51 -05:00
version.go Consolidate timeouts for `linkerd check` (#2191) 2019-02-05 11:38:30 -05:00
version_test.go Enable `unused` linter (#2357) 2019-02-23 11:05:39 -08:00