fix: dynamic resource API for builtin resources

Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
hongming
2025-06-12 11:24:49 +08:00
parent 25cf3a7d10
commit a1a2f4bb2d

View File

@@ -66,8 +66,7 @@ func (d *DynamicResourceHandler) HandleServiceError(serviceError restful.Service
Resource: reqInfo.Resource, Resource: reqInfo.Resource,
} }
if gvr.Group == "" || if gvr.Version == "" ||
gvr.Version == "" ||
gvr.Resource == "" { gvr.Resource == "" {
d.serviceErrorHandleFallback(serviceError, req, w) d.serviceErrorHandleFallback(serviceError, req, w)
return return