Skip to content

Commit 0e8efe4

Browse files
authored
Reduce CPU and Memory usage (#1009)
Signed-off-by: Daniel Fan <[email protected]>
1 parent 01db7ee commit 0e8efe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/operator/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func NewODLMOperator(mgr manager.Manager, name string) *ODLMOperator {
6060
Config: mgr.GetConfig(),
6161
Recorder: mgr.GetEventRecorderFor(name),
6262
Scheme: mgr.GetScheme(),
63-
MaxConcurrentReconciles: 10,
63+
MaxConcurrentReconciles: 3,
6464
}
6565
}
6666

@@ -369,7 +369,7 @@ func (m *ODLMOperator) GetClusterServiceVersion(ctx context.Context, sub *olmv1a
369369
Name: csvName,
370370
Namespace: csvNamespace,
371371
}
372-
if err := m.Client.Get(ctx, csvKey, csv); err != nil {
372+
if err := m.Reader.Get(ctx, csvKey, csv); err != nil {
373373
if apierrors.IsNotFound(err) {
374374
klog.V(3).Infof("ClusterServiceVersion %s is not ready. Will check it when it is stable", sub.Name)
375375
return nil, nil

0 commit comments

Comments
 (0)