From 8e796c1168caabd342f94688c4a12c8836cb0632 Mon Sep 17 00:00:00 2001 From: Shuting Zhao Date: Mon, 28 Oct 2019 19:21:30 -0700 Subject: [PATCH] increase webhook timeout to 3s --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 470476f101..32d918e0c0 100644 --- a/main.go +++ b/main.go @@ -171,7 +171,7 @@ func init() { flag.BoolVar(&cpu, "cpu", false, "cpu profilling feature gate, default to false || cpu and memory profiling cannot be enabled at the same time") flag.BoolVar(&memory, "memory", false, "memory profilling feature gate, default to false || cpu and memory profiling cannot be enabled at the same time") - flag.IntVar(&webhookTimeout, "webhooktimeout", 2, "timeout for webhook configurations") + flag.IntVar(&webhookTimeout, "webhooktimeout", 3, "timeout for webhook configurations") flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.") flag.StringVar(&serverIP, "serverIP", "", "IP address where Kyverno controller runs. Only required if out-of-cluster.") flag.StringVar(&filterK8Resources, "filterK8Resources", "", "k8 resource in format [kind,namespace,name] where policy is not evaluated by the admission webhook. example --filterKind \"[Deployment, kyverno, kyverno]\" --filterKind \"[Deployment, kyverno, kyverno],[Events, *, *]\"")