mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
ignoring generate kinds from mutate webhook (#2656)
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
parent
7c5142b26a
commit
0e8341166d
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ func (m *webhookConfigManager) buildWebhooks(namespace string) (res []*webhook,
|
|||
}
|
||||
}
|
||||
|
||||
if p.HasMutate() || p.HasVerifyImages() || p.HasGenerate() {
|
||||
if p.HasMutate() || p.HasVerifyImages() {
|
||||
if p.Spec.FailurePolicy != nil && *p.Spec.FailurePolicy == kyverno.Ignore {
|
||||
m.mergeWebhook(mutateIgnore, p, false)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue