Merge pull request #13583 from jiashengz/fix-gvk

fix: check group for resource info match
pull/13642/head
Matt Farina 8 months ago committed by GitHub
commit 1e256b6198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -81,5 +81,5 @@ func (r ResourceList) Intersect(rs ResourceList) ResourceList {
// isMatchingInfo returns true if infos match on Name and GroupVersionKind.
func isMatchingInfo(a, b *resource.Info) bool {
return a.Name == b.Name && a.Namespace == b.Namespace && a.Mapping.GroupVersionKind.Kind == b.Mapping.GroupVersionKind.Kind
return a.Name == b.Name && a.Namespace == b.Namespace && a.Mapping.GroupVersionKind.Kind == b.Mapping.GroupVersionKind.Kind && a.Mapping.GroupVersionKind.Group == b.Mapping.GroupVersionKind.Group
}

Loading…
Cancel
Save