From 5411463bf94cae71ea9984fbbdfa1e56dfb899dd Mon Sep 17 00:00:00 2001 From: Prateek Pandey Date: Fri, 19 Jul 2019 18:31:57 +0530 Subject: [PATCH] feat(admission): add failure policy as Fail for admission-webhook (#2679) failure policy Fail means that an error calling the webhook causes the admission to fail on defined validations. Signed-off-by: prateekpandey14 --- k8s/openebs-operator.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k8s/openebs-operator.yaml b/k8s/openebs-operator.yaml index e130e7e6c4..cf951e6b79 100644 --- a/k8s/openebs-operator.yaml +++ b/k8s/openebs-operator.yaml @@ -592,7 +592,9 @@ metadata: app: admission-webhook openebs.io/component-name: admission-webhook webhooks: + # failurePolicy Fail means that an error calling the webhook causes the admission to fail. - name: admission-webhook.openebs.io + failurePolicy: Fail clientConfig: service: name: admission-server-svc