Skip to content

Commit

Permalink
Merge pull request #7530 from zhouhaoA1/fix-kindfor
Browse files Browse the repository at this point in the history
Fix gvr `Group` and `Version` field missing in `KindFor` method
  • Loading branch information
qiuming-best authored Mar 19, 2024
2 parents 6ec1701 + 7ce35ec commit 922653e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/discovery/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ func (h *helper) Refresh() error {
for _, resource := range resourceGroup.APIResources {
gvr := gv.WithResource(resource.Name)
gvk := gv.WithKind(resource.Kind)
resource.Group = gv.Group
resource.Version = gv.Version
h.resourcesMap[gvr] = resource
h.kindMap[gvk] = resource
}
Expand Down

0 comments on commit 922653e

Please sign in to comment.