Skip to content

Commit

Permalink
Increase number of workers for GardenerCluster controller to 25
Browse files Browse the repository at this point in the history
  • Loading branch information
koala7659 committed Nov 25, 2024
1 parent 057d39f commit 9462898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions internal/controller/kubeconfig/gardener_cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/builder"
"sigs.k8s.io/controller-runtime/pkg/client"
pkgctrl "sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/predicate"
)

Expand All @@ -43,6 +44,7 @@ const (
clusterCRNameLabel = "operator.kyma-project.io/cluster-name"

rotationPeriodRatio = 0.95
numberOfWorkers = 25
)

// GardenerClusterController reconciles a GardenerCluster object
Expand Down Expand Up @@ -436,5 +438,6 @@ func (controller *GardenerClusterController) SetupWithManager(mgr ctrl.Manager)
predicate.AnnotationChangedPredicate{},
predicate.GenerationChangedPredicate{}),
)).
WithOptions(pkgctrl.Options{MaxConcurrentReconciles: numberOfWorkers}).
Complete(controller)
}
4 changes: 1 addition & 3 deletions internal/controller/runtime/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
)

const (
numberOfWorkers = 25
)
const numberOfWorkers = 25

// RuntimeReconciler reconciles a Runtime object
// nolint:revive
Expand Down

0 comments on commit 9462898

Please sign in to comment.