mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: block policy admission if kyverno is down (#5677)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
8fd841a912
commit
a34bbaa586
1 changed files with 2 additions and 2 deletions
|
@ -547,7 +547,7 @@ func (c *controller) buildPolicyMutatingWebhookConfiguration(caBundle []byte) (*
|
|||
admissionregistrationv1.Update,
|
||||
},
|
||||
}},
|
||||
FailurePolicy: &ignore,
|
||||
FailurePolicy: &fail,
|
||||
SideEffects: &noneOnDryRun,
|
||||
ReinvocationPolicy: &ifNeeded,
|
||||
AdmissionReviewVersions: []string{"v1"},
|
||||
|
@ -569,7 +569,7 @@ func (c *controller) buildPolicyValidatingWebhookConfiguration(caBundle []byte)
|
|||
admissionregistrationv1.Update,
|
||||
},
|
||||
}},
|
||||
FailurePolicy: &ignore,
|
||||
FailurePolicy: &fail,
|
||||
SideEffects: &none,
|
||||
AdmissionReviewVersions: []string{"v1"},
|
||||
}},
|
||||
|
|
Loading…
Reference in a new issue