fix mutating ownerReferenecs
@@ -139,7 +139,8 @@ func ignorePatch(path string) bool {
if !strings.Contains(path, "/metadata/name") &&
!strings.Contains(path, "/metadata/namespace") &&
!strings.Contains(path, "/metadata/annotations") &&
- !strings.Contains(path, "/metadata/labels") {
+ !strings.Contains(path, "/metadata/labels") &&
+ !strings.Contains(path, "/metadata/ownerReferences") {
return true
}
}
