Merge pull request #2976 from HotelsDotCom/respect-apiversion-change

Ignore Apiversion, use Kind and Name only to search for original resource on update/delete
pull/3014/head
Matthew Fisher 7 years ago committed by GitHub
commit d7a81c99e1

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

Loading…
Cancel
Save