1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00

fix mutating ownerReferenecs (#3061)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
shuting 2022-01-24 13:20:27 +08:00 committed by GitHub
parent c479b41d34
commit e5e64f86cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}