Implement simple endpoint slice batching
Kubernetes-commit: 49b11b5431d01cf9ac954b97cbec51e92d33c7f6
This commit is contained in:
parent
ece0548398
commit
5167f32295
|
|
@ -312,6 +312,11 @@ type EndpointSliceControllerConfiguration struct {
|
|||
// added to an EndpointSlice. More endpoints per slice will result in fewer
|
||||
// and larger endpoint slices, but larger resources.
|
||||
MaxEndpointsPerSlice int32
|
||||
|
||||
// EndpointUpdatesBatchPeriod describes the length of endpoint updates batching period.
|
||||
// Processing of pod changes will be delayed by this duration to join them with potential
|
||||
// upcoming updates and reduce the overall number of endpoints updates.
|
||||
EndpointUpdatesBatchPeriod metav1.Duration
|
||||
}
|
||||
|
||||
// GarbageCollectorControllerConfiguration contains elements describing GarbageCollectorController.
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ func (in *EndpointControllerConfiguration) DeepCopy() *EndpointControllerConfigu
|
|||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *EndpointSliceControllerConfiguration) DeepCopyInto(out *EndpointSliceControllerConfiguration) {
|
||||
*out = *in
|
||||
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue