1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 10:28:36 +00:00

decrease webhook time to 2s

This commit is contained in:
Shuting Zhao 2019-08-07 11:29:19 -07:00
parent 4ef50c66ea
commit 1ddae23056

View file

@ -17,6 +17,9 @@ import (
rest "k8s.io/client-go/rest"
)
// defaultWebhookTimeout = 2s
var defaultWebhookTimeout = int32(2)
// WebhookRegistrationClient is client for registration webhooks on cluster
type WebhookRegistrationClient struct {
registrationClient *admregclient.AdmissionregistrationV1beta1Client
@ -317,6 +320,7 @@ func constructWebhook(name, servicePath string, caData []byte, validation bool)
},
},
},
TimeoutSeconds: &defaultWebhookTimeout,
}
}
@ -361,6 +365,7 @@ func constructDebugWebhook(name, url string, caData []byte, validation bool) adm
},
},
},
TimeoutSeconds: &defaultWebhookTimeout,
}
}