linkerd2/pkg/k8s
Andrew Seigner 2e323e7e9e
Fix Service Profile CRD check to handle k8s errors (#2781)
`ServiceProfilesAccess()`, called by control plane components at
startup, would fail if it encountered an `ErrGroupDiscoveryFailed` from
a GroupVersion request. This error is mostly innocuous, as it returns an
error if any GroupVersion fails. `ServiceProfilesAccess()` only needs to
validate ServiceProfiles are available.

Modify `ServiceProfilesAccess()` to specifically request the
ServiceProfile GroupVersion. Also add Discovery object
(`APIResourceList`) support to `NewFakeClientSets`.

Fixes #2780

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2019-05-03 19:51:39 +02:00
..
testdata Fix handling of kubeconfig server urls that include paths (#2305) 2019-02-18 17:57:27 -08:00
api.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00
authz.go Fix Service Profile CRD check to handle k8s errors (#2781) 2019-05-03 19:51:39 +02:00
authz_test.go Fix Service Profile CRD check to handle k8s errors (#2781) 2019-05-03 19:51:39 +02:00
fake.go Fix Service Profile CRD check to handle k8s errors (#2781) 2019-05-03 19:51:39 +02:00
fake_test.go Introduce k8s apiextensions support (#2759) 2019-04-28 18:55:22 -07:00
k8s.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00
k8s_test.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00
kubectl.go Check kubectl version as part of checks (#2358) 2019-03-01 10:03:59 -08:00
kubectl_test.go Check kubectl version as part of checks (#2358) 2019-03-01 10:03:59 -08:00
labels.go Add the ability to inject a debug sidecar (#2726) 2019-04-22 16:53:12 -07:00
labels_test.go Provide peer Identities via the Destination API (#2537) 2019-03-22 09:19:14 -07:00
portforward.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00
portforward_test.go Introduce k8s apiextensions support (#2759) 2019-04-28 18:55:22 -07:00
version.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00
version_test.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00