mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 07:13:53 +00:00
Change default timeout to 10 seconds
This commit is contained in:
parent
08433067c3
commit
7543b2ef55
@ -51,7 +51,7 @@ func SetDefaults_ValidatingWebhook(obj *admissionregistrationv1.ValidatingWebhoo
|
|||||||
}
|
}
|
||||||
if obj.TimeoutSeconds == nil {
|
if obj.TimeoutSeconds == nil {
|
||||||
obj.TimeoutSeconds = new(int32)
|
obj.TimeoutSeconds = new(int32)
|
||||||
*obj.TimeoutSeconds = 30
|
*obj.TimeoutSeconds = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(obj.AdmissionReviewVersions) == 0 {
|
if len(obj.AdmissionReviewVersions) == 0 {
|
||||||
@ -83,7 +83,7 @@ func SetDefaults_MutatingWebhook(obj *admissionregistrationv1.MutatingWebhook) {
|
|||||||
}
|
}
|
||||||
if obj.TimeoutSeconds == nil {
|
if obj.TimeoutSeconds == nil {
|
||||||
obj.TimeoutSeconds = new(int32)
|
obj.TimeoutSeconds = new(int32)
|
||||||
*obj.TimeoutSeconds = 30
|
*obj.TimeoutSeconds = 10
|
||||||
}
|
}
|
||||||
if obj.ReinvocationPolicy == nil {
|
if obj.ReinvocationPolicy == nil {
|
||||||
never := admissionregistrationv1.NeverReinvocationPolicy
|
never := admissionregistrationv1.NeverReinvocationPolicy
|
||||||
|
@ -286,7 +286,7 @@ type ValidatingWebhook struct {
|
|||||||
// the webhook call will be ignored or the API call will fail based on the
|
// the webhook call will be ignored or the API call will fail based on the
|
||||||
// failure policy.
|
// failure policy.
|
||||||
// The timeout value must be between 1 and 30 seconds.
|
// The timeout value must be between 1 and 30 seconds.
|
||||||
// Default to 30 seconds.
|
// Default to 10 seconds.
|
||||||
// +optional
|
// +optional
|
||||||
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"`
|
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"`
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ type MutatingWebhook struct {
|
|||||||
// the webhook call will be ignored or the API call will fail based on the
|
// the webhook call will be ignored or the API call will fail based on the
|
||||||
// failure policy.
|
// failure policy.
|
||||||
// The timeout value must be between 1 and 30 seconds.
|
// The timeout value must be between 1 and 30 seconds.
|
||||||
// Default to 30 seconds.
|
// Default to 10 seconds.
|
||||||
// +optional
|
// +optional
|
||||||
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"`
|
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user