1
0
Fork 0
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:
Pooja Singh 2021-11-06 23:06:00 +05:30 committed by GitHub
parent 7c5142b26a
commit 0e8341166d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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