Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add label selector to all event sources #480

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

kosmoz
Copy link
Member

@kosmoz kosmoz commented Dec 21, 2023

In addition to adding label selectors to all explicitly created event sources, all KubernetesDependentResources now have at least a label selector OR resource discriminator.

When creating an informer event source using the informerEventSource function we now require a label selector to prevent accidentally creating an InformerEventSource without one. If a use case for such an event source ever arises, I propose that we create a separate function for this to make the lack of a label selector more obvious.

With this change, the operator can be started in Kubernetes clusters managed by OVH reliably again. I was able to run it 10+ times without encountering any errors. Also, startup time is greatly reduced (on my machine from 9-12s to about 4.5s).

@kosmoz kosmoz requested a review from pmig December 21, 2023 13:56
@kosmoz kosmoz self-assigned this Dec 21, 2023
@kosmoz kosmoz linked an issue Dec 21, 2023 that may be closed by this pull request
2 tasks
@pmig pmig merged commit bea5629 into main Dec 22, 2023
3 checks passed
@pmig pmig deleted the 479-bug-high-load-on-api-server branch December 22, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: High load on API Server
2 participants