Skip to content

Commit 211b0da

Browse files
anson627k8s-publishing-bot
authored andcommitted
Make ConcurrentResourceClaimSyncs configurable (#134701)
* DRA resource claim controller: configurable number of workers It might never be necessary to change the default, but it is hard to be sure. It's better to have the option, just in case. * generate files * resourceclaimcontroller: normalize validation error message * Update cmd/kube-controller-manager/app/options/resourceclaimcontroller.go Co-authored-by: Jordan Liggitt <jordan@liggitt.net> --------- Co-authored-by: Patrick Ohly <patrick.ohly@intel.com> Co-authored-by: Jordan Liggitt <jordan@liggitt.net> Kubernetes-commit: a816a7b1d83970f2fa70fa544f80585a4b44268f
1 parent fc12387 commit 211b0da

File tree

5 files changed

+43
-6
lines changed

5 files changed

+43
-6
lines changed

config/v1alpha1/types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ type KubeControllerManagerConfiguration struct {
170170
ValidatingAdmissionPolicyStatusController ValidatingAdmissionPolicyStatusControllerConfiguration
171171
// DeviceTaintEvictionControllerConfiguration contains elements configuring the device taint eviction controller.
172172
DeviceTaintEvictionController DeviceTaintEvictionControllerConfiguration
173+
// ResourceClaimControllerConfiguration contains elements configuring the resource claim controller.
174+
ResourceClaimController ResourceClaimControllerConfiguration
173175
}
174176

175177
// AttachDetachControllerConfiguration contains elements describing AttachDetachController.
@@ -499,3 +501,12 @@ type DeviceTaintEvictionControllerConfiguration struct {
499501
// The default is 10.
500502
ConcurrentSyncs int32
501503
}
504+
505+
// ResourceClaimControllerConfiguration contains elements configuring the resource claim controller.
506+
type ResourceClaimControllerConfiguration struct {
507+
// ConcurrentSyncs is the number of operations (deleting a pod, updating a ResourcClaim status, etc.)
508+
// that will be done concurrently. Larger number = processing, but more CPU (and network) load.
509+
//
510+
// The default is 50.
511+
ConcurrentSyncs int32
512+
}

config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/v1alpha1/zz_generated.model_name.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go 1.25.0
77
godebug default=go1.25
88

99
require (
10-
k8s.io/apimachinery v0.0.0-20251223142228-10257273d7e7
10+
k8s.io/apimachinery v0.0.0-20260107193351-2936fea9b085
1111
k8s.io/cloud-provider v0.0.0-20251223151909-65aef96cfa49
1212
k8s.io/controller-manager v0.0.0-20251223151716-5616aa98c452
1313
)
@@ -25,11 +25,15 @@ require (
2525
golang.org/x/text v0.31.0 // indirect
2626
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
2727
gopkg.in/inf.v0 v0.9.1 // indirect
28-
k8s.io/component-base v0.0.0-20251223144127-af45865c7961 // indirect
28+
k8s.io/component-base v0.0.0-20251226184832-b8fb4e3d1155 // indirect
2929
k8s.io/klog/v2 v2.130.1 // indirect
3030
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
3131
k8s.io/utils v0.0.0-20251219084037-98d557b7f1e7 // indirect
3232
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
3333
sigs.k8s.io/randfill v1.0.0 // indirect
3434
sigs.k8s.io/structured-merge-diff/v6 v6.3.1 // indirect
3535
)
36+
37+
replace k8s.io/apiserver => k8s.io/apiserver v0.0.0-20260107185318-a60c92c1b688
38+
39+
replace k8s.io/client-go => k8s.io/client-go v0.0.0-20260107183400-52d9854c37fe

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
5555
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5656
k8s.io/api v0.0.0-20251223142543-49b7fdb8413e h1:LzUvqdOqvu9sv5CRELRFmZyOc0OZpkffmQpQStncYyo=
5757
k8s.io/api v0.0.0-20251223142543-49b7fdb8413e/go.mod h1:6bJjOS8ww83H+5m1wb7JJw1NHEOZiCabMdNDjRmR2NY=
58-
k8s.io/apimachinery v0.0.0-20251223142228-10257273d7e7 h1:6PdG2x/Z3kYAoRAoiHaJ/DzTgMdY/E73+GKxrMWJvok=
59-
k8s.io/apimachinery v0.0.0-20251223142228-10257273d7e7/go.mod h1:4mERM8sOoVa6HQ0eN/MFv1Q18wFYr64mgZRlZqiwnX0=
58+
k8s.io/apimachinery v0.0.0-20260107193351-2936fea9b085 h1:X3bHuH5ZqP/J26+Oc7sG8nzCx3Iu8MJZD7YC+UrxE3E=
59+
k8s.io/apimachinery v0.0.0-20260107193351-2936fea9b085/go.mod h1:4mERM8sOoVa6HQ0eN/MFv1Q18wFYr64mgZRlZqiwnX0=
6060
k8s.io/cloud-provider v0.0.0-20251223151909-65aef96cfa49 h1:qJVchgvEyNlBWiEuoYhts/eZvd4j895XCaYOr+BE4kg=
6161
k8s.io/cloud-provider v0.0.0-20251223151909-65aef96cfa49/go.mod h1:Cfgs4rD04FR7X/I6A5ImoftkOJlBgx4uyywqXTbuMtg=
62-
k8s.io/component-base v0.0.0-20251223144127-af45865c7961 h1:EKm+sz3eHar9BFS6EtHmL9+Kf00CrgMHbZ2bYifBCHo=
63-
k8s.io/component-base v0.0.0-20251223144127-af45865c7961/go.mod h1:ZIC9uvuLPK/4xNNbdRo4OWHw4y6NeD94loNfGDgJqUY=
62+
k8s.io/component-base v0.0.0-20251226184832-b8fb4e3d1155 h1:AQMc+yP616jEhViFYYZuHtLelMvWpCivQU+sn0Memns=
63+
k8s.io/component-base v0.0.0-20251226184832-b8fb4e3d1155/go.mod h1:ZIC9uvuLPK/4xNNbdRo4OWHw4y6NeD94loNfGDgJqUY=
6464
k8s.io/controller-manager v0.0.0-20251223151716-5616aa98c452 h1:g+qr9hSqlbv/lAQvpOiVnz39cQC4tsTqfZ/eXwdEYHU=
6565
k8s.io/controller-manager v0.0.0-20251223151716-5616aa98c452/go.mod h1:9kGsYLWhV8hbDqYS7vtbCf7QYYl7ttv8Kaw1WytMmAY=
6666
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=

0 commit comments

Comments
 (0)