Merge pull request #102981 from SataQiu/add-ephemeral-config-v1alpha1

Add --concurrent-ephemeralvolume-syncs flag for kube-controller-manager

Kubernetes-commit: 7ab3e3c8c39cc8f4d832fb800cf9db72bd95c733
This commit is contained in:
Kubernetes Publisher 2021-08-05 20:55:12 -07:00
commit dd3f02f73b
4 changed files with 47 additions and 18 deletions

View File

@ -119,6 +119,9 @@ type KubeControllerManagerConfiguration struct {
// EndpointSliceMirroringControllerConfiguration holds configuration for
// EndpointSliceMirroringController related features.
EndpointSliceMirroringController EndpointSliceMirroringControllerConfiguration
// EphemeralVolumeControllerConfiguration holds configuration for EphemeralVolumeController
// related features.
EphemeralVolumeController EphemeralVolumeControllerConfiguration
// GarbageCollectorControllerConfiguration holds configuration for
// GarbageCollectorController related features.
GarbageCollectorController GarbageCollectorControllerConfiguration
@ -300,6 +303,14 @@ type EndpointSliceMirroringControllerConfiguration struct {
MirroringEndpointUpdatesBatchPeriod metav1.Duration
}
// EphemeralVolumeControllerConfiguration contains elements describing EphemeralVolumeController.
type EphemeralVolumeControllerConfiguration struct {
// ConcurrentEphemeralVolumeSyncseSyncs is the number of ephemeral volume syncing operations
// that will be done concurrently. Larger number = faster ephemeral volume updating,
// but more CPU (and network) load.
ConcurrentEphemeralVolumeSyncs int32
}
// GarbageCollectorControllerConfiguration contains elements describing GarbageCollectorController.
type GarbageCollectorControllerConfiguration struct {
// enables the generic garbage collector. MUST be synced with the

View File

@ -194,6 +194,22 @@ func (in *EndpointSliceMirroringControllerConfiguration) DeepCopy() *EndpointSli
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EphemeralVolumeControllerConfiguration) DeepCopyInto(out *EphemeralVolumeControllerConfiguration) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralVolumeControllerConfiguration.
func (in *EphemeralVolumeControllerConfiguration) DeepCopy() *EphemeralVolumeControllerConfiguration {
if in == nil {
return nil
}
out := new(EphemeralVolumeControllerConfiguration)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GarbageCollectorControllerConfiguration) DeepCopyInto(out *GarbageCollectorControllerConfiguration) {
*out = *in
@ -289,6 +305,7 @@ func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerMa
out.EndpointController = in.EndpointController
out.EndpointSliceController = in.EndpointSliceController
out.EndpointSliceMirroringController = in.EndpointSliceMirroringController
out.EphemeralVolumeController = in.EphemeralVolumeController
in.GarbageCollectorController.DeepCopyInto(&out.GarbageCollectorController)
out.HPAController = in.HPAController
out.JobController = in.JobController

17
go.mod
View File

@ -5,17 +5,18 @@ module k8s.io/kube-controller-manager
go 1.16
require (
k8s.io/apimachinery v0.0.0-20210712060818-a644435e2c13
k8s.io/cloud-provider v0.0.0-20210730025314-219800f318cc
k8s.io/apimachinery v0.0.0-20210805051055-f7769293e6f1
k8s.io/cloud-provider v0.0.0-20210730025316-a28e6bea03a4
k8s.io/component-base v0.0.0-20210806040719-3cb663ee50af // indirect
k8s.io/controller-manager v0.0.0-20210730025207-aa6191327d54
)
replace (
k8s.io/api => k8s.io/api v0.0.0-20210720141931-aa30bdaf750c
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210712060818-a644435e2c13
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20210730023635-ab8125b91166
k8s.io/client-go => k8s.io/client-go v0.0.0-20210730022736-bcf88f084d9b
k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20210730025314-219800f318cc
k8s.io/component-base => k8s.io/component-base v0.0.0-20210730023241-ad5ac9575950
k8s.io/api => k8s.io/api v0.0.0-20210806000319-499b6f90564c
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210805051055-f7769293e6f1
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20210806001536-1dd7efb8f22a
k8s.io/client-go => k8s.io/client-go v0.0.0-20210806000600-0f5acb8c39dd
k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20210730025316-a28e6bea03a4
k8s.io/component-base => k8s.io/component-base v0.0.0-20210806040719-3cb663ee50af
k8s.io/controller-manager => k8s.io/controller-manager v0.0.0-20210730025207-aa6191327d54
)

20
go.sum
View File

@ -682,16 +682,16 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/api v0.0.0-20210720141931-aa30bdaf750c h1:bQDI22QyjupmAGqhbVE2uIkAkAAVEVfTf/n8RG/Xtpo=
k8s.io/api v0.0.0-20210720141931-aa30bdaf750c/go.mod h1:FtqZiusVhnyM5jUPPFkDCU91OKo0sOpX9b9hotVGbIk=
k8s.io/apimachinery v0.0.0-20210712060818-a644435e2c13 h1:Y40e5ho6n8KOvBCqdz/jm7ssKQyQLQdbZbC3lR9TaCU=
k8s.io/apimachinery v0.0.0-20210712060818-a644435e2c13/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0=
k8s.io/apiserver v0.0.0-20210730023635-ab8125b91166/go.mod h1:tXAdjy8Dar35wX+GdkdyCz9BTlW5QYqSuR4x7mLnlt8=
k8s.io/client-go v0.0.0-20210730022736-bcf88f084d9b/go.mod h1:giP+QzPQ7YrInF4wp+jzA8oSh6o+9Nb+r2XCIzGIfo4=
k8s.io/cloud-provider v0.0.0-20210730025314-219800f318cc h1:OZxCSLFoxhca19kx6QUIGpiOOynDRGcy4VuBUjVbZFk=
k8s.io/cloud-provider v0.0.0-20210730025314-219800f318cc/go.mod h1:QY+pZsyGO8usDGojZTSwRx7tWVzaw4eL3FB4JyU0/kk=
k8s.io/component-base v0.0.0-20210730023241-ad5ac9575950 h1:pdupX8U+ovaOPgbMpjYIbKsir253L0kxnGObXTd+ZwA=
k8s.io/component-base v0.0.0-20210730023241-ad5ac9575950/go.mod h1:l7uRPvt9vBUPHa3RbKW7tWjhX6cVMTThTNOv48GNY+U=
k8s.io/api v0.0.0-20210806000319-499b6f90564c h1:/TwdwBIiHSFv2VnETc8qgoi/skGGBo1qlXszp8N/BMo=
k8s.io/api v0.0.0-20210806000319-499b6f90564c/go.mod h1:9J6nkHavSazyXmPeuA4f1YO9Ztdjw7nDibPjT4P+wsY=
k8s.io/apimachinery v0.0.0-20210805051055-f7769293e6f1 h1:cVpwhaGeh/tNPBeYbFff3tjx5AxwG5zwImhz+eusG3k=
k8s.io/apimachinery v0.0.0-20210805051055-f7769293e6f1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0=
k8s.io/apiserver v0.0.0-20210806001536-1dd7efb8f22a/go.mod h1:Gl80VNlN1mhMhrqL2L0SE6qpl4NevvXrl44WTlXy6Z0=
k8s.io/client-go v0.0.0-20210806000600-0f5acb8c39dd/go.mod h1:AptIKtgqoSsdZsOhDruqHKBn7GeBrnbH5CgVkI7tpYU=
k8s.io/cloud-provider v0.0.0-20210730025316-a28e6bea03a4 h1:vRfjLhd1kQnwW1K8EbbuYFU9znLDXBoZMHy14kXOvBE=
k8s.io/cloud-provider v0.0.0-20210730025316-a28e6bea03a4/go.mod h1:QY+pZsyGO8usDGojZTSwRx7tWVzaw4eL3FB4JyU0/kk=
k8s.io/component-base v0.0.0-20210806040719-3cb663ee50af h1:TvSosXU6sV/t6L77kj/UEyYFTzmLdxRnKIOJN5UcAls=
k8s.io/component-base v0.0.0-20210806040719-3cb663ee50af/go.mod h1:68YquEVTuJRDLUMJsRvsUyaFu7wBQnbVZlAV1oMkH58=
k8s.io/controller-manager v0.0.0-20210730025207-aa6191327d54 h1:Vd37FGQzo3x3KEGq4wSJl5M8rQbvupuEUOC4RLb4AzU=
k8s.io/controller-manager v0.0.0-20210730025207-aa6191327d54/go.mod h1:V5F/GWrxZpJAV2k8g1NrVEfgQiZEE5x03fbjw4JKGkw=
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=