diff --git a/pkg/endpoints/installer.go b/pkg/endpoints/installer.go index b36ef9fd4..eef3b64c6 100644 --- a/pkg/endpoints/installer.go +++ b/pkg/endpoints/installer.go @@ -808,8 +808,12 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag return nil, fmt.Errorf("unrecognized action verb: %s", action.Verb) } for _, route := range routes { - route.Metadata(ROUTE_META_GVK, reqScope.Kind) - route.Metadata(ROUTE_META_ACTION, action.Verb) + route.Metadata(ROUTE_META_GVK, metav1.GroupVersionKind{ + Group: reqScope.Kind.Group, + Version: reqScope.Kind.Version, + Kind: reqScope.Kind.Kind, + }) + route.Metadata(ROUTE_META_ACTION, strings.ToLower(action.Verb)) ws.Route(route) } // Note: update GetAuthorizerAttributes() when adding a custom handler.