ionos-cloud / cluster-api-provider-ionoscloud

cluster-api provider for IONOS Cloud
Apache License 2.0
12 stars 4 forks source link

:sparkles: Make `MaxConcurrentReconciles` configurable #138

Closed piepmatz closed 5 months ago

piepmatz commented 5 months ago

What is the purpose of this pull request/Why do we need it?

Improve performance by having more worker goroutines per controller.

Description of changes:

Besides the actual flags for specifying the number of concurrent reconciles per controller, this change adds locks as needed for thread safety.

This applies to 3 kinds of operations:

For locking, a new locker package was added.

Special notes for your reviewer:

Reviewing commit by commit should be the easiest way.

Checklist:

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
7.6% Duplication on New Code

See analysis details on SonarCloud