Skip to content

Commit

Permalink
Issue 7529: fix gvr Group and Version field missing in KindFor
Browse files Browse the repository at this point in the history
…method
  • Loading branch information
zhouhao committed Mar 15, 2024
1 parent b3a53ee commit 98a0f4f
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 98a0f4f

Please sign in to comment.