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:
parent
c479b41d34
commit
e5e64f86cf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue