mirror of
https://github.com/helm/helm.git
synced 2026-08-04 15:10:47 +00:00
fix: check group for resource info match
Closes: #13582
Signed-off-by: Jiasheng Zhu <gnehsaijuhz@hotmail.com>
(cherry picked from commit f5d488122b)
This commit is contained in:
committed by
Matt Farina
parent
023d788ce8
commit
2ebce786ba
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user