diff --git a/pkg/apis/admissionregistration/v1/defaults.go b/pkg/apis/admissionregistration/v1/defaults.go index 90e0af7cbf8..3fbc7a63d83 100644 --- a/pkg/apis/admissionregistration/v1/defaults.go +++ b/pkg/apis/admissionregistration/v1/defaults.go @@ -51,7 +51,7 @@ func SetDefaults_ValidatingWebhook(obj *admissionregistrationv1.ValidatingWebhoo } if obj.TimeoutSeconds == nil { obj.TimeoutSeconds = new(int32) - *obj.TimeoutSeconds = 30 + *obj.TimeoutSeconds = 10 } if len(obj.AdmissionReviewVersions) == 0 { @@ -83,7 +83,7 @@ func SetDefaults_MutatingWebhook(obj *admissionregistrationv1.MutatingWebhook) { } if obj.TimeoutSeconds == nil { obj.TimeoutSeconds = new(int32) - *obj.TimeoutSeconds = 30 + *obj.TimeoutSeconds = 10 } if obj.ReinvocationPolicy == nil { never := admissionregistrationv1.NeverReinvocationPolicy diff --git a/staging/src/k8s.io/api/admissionregistration/v1/types.go b/staging/src/k8s.io/api/admissionregistration/v1/types.go index bcee91d72c6..0f2d4bc924d 100644 --- a/staging/src/k8s.io/api/admissionregistration/v1/types.go +++ b/staging/src/k8s.io/api/admissionregistration/v1/types.go @@ -286,7 +286,7 @@ type ValidatingWebhook struct { // the webhook call will be ignored or the API call will fail based on the // failure policy. // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. + // Default to 10 seconds. // +optional 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 // failure policy. // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. + // Default to 10 seconds. // +optional TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"`