add subresources for custom resources

Kubernetes-commit: 6fbe8157e39f6bd7ad885a8a6f8614e2fe45dc5e
This commit is contained in:
Nikhita Raghunath
2017-11-06 18:19:15 +05:30
committed by Kubernetes Publisher
parent 35f61b2f03
commit 5cf3fd5ef1
2 changed files with 2 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ func fakeScaleClient(t *testing.T) (ScalesGetter, []schema.GroupResource) {
restMapperRes, err := discovery.GetAPIGroupResources(fakeDiscoveryClient)
if err != nil {
t.Fatalf("unexpected error while constructing resource list from fake discovery client: %v")
t.Fatalf("unexpected error while constructing resource list from fake discovery client: %v", err)
}
restMapper := discovery.NewRESTMapper(restMapperRes, apimeta.InterfacesForUnstructured)