mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
1af9e48b0d
commit
de6c6f2199
1 changed files with 3 additions and 1 deletions
|
@ -67,6 +67,7 @@ var (
|
|||
imageSignatureRepository string
|
||||
clientRateLimitQPS float64
|
||||
clientRateLimitBurst int
|
||||
webhookRegistrationTimeout time.Duration
|
||||
setupLog = log.Log.WithName("setup")
|
||||
)
|
||||
|
||||
|
@ -102,6 +103,7 @@ func main() {
|
|||
flag.Float64Var(&clientRateLimitQPS, "clientRateLimitQPS", 0, "Configure the maximum QPS to the master from Kyverno. Uses the client default if zero.")
|
||||
flag.IntVar(&clientRateLimitBurst, "clientRateLimitBurst", 0, "Configure the maximum burst for throttle. Uses the client default if zero.")
|
||||
|
||||
flag.DurationVar(&webhookRegistrationTimeout, "webhookRegistrationTimeout", 120*time.Second, "Timeout for webhook registration, e.g., 30s, 1m, 5m.")
|
||||
if err := flag.Set("v", "2"); err != nil {
|
||||
setupLog.Error(err, "failed to set log level")
|
||||
os.Exit(1)
|
||||
|
@ -392,7 +394,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
registerWrapperRetry := common.RetryFunc(time.Second, 30*time.Second, webhookCfg.Register, setupLog)
|
||||
registerWrapperRetry := common.RetryFunc(time.Second, webhookRegistrationTimeout, webhookCfg.Register, setupLog)
|
||||
registerWebhookConfigurations := func() {
|
||||
certManager.InitTLSPemPair()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue