Skip to content

Commit a1e3c29

Browse files
authored
fix(client): GVR core resources caching (#10014)
* fix GVR core resources caching * remove debug line
1 parent 4111b4f commit a1e3c29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/common/client/verber.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ func (v *resourceVerber) buildGroupVersionResourceCache(resourceList []*metav1.A
102102
}
103103

104104
// Mapping for core resources
105-
kindToGroupVersionResource[strings.ToLower(apiResource.Kind)] = gvr
105+
if len(apiResource.Group) == 0 {
106+
kindToGroupVersionResource[strings.ToLower(apiResource.Kind)] = gvr
107+
}
106108

107109
// Mapping for CRD resources with custom kind
108110
kindToGroupVersionResource[crdKind] = gvr

0 commit comments

Comments
 (0)