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

sql: silence informer errors on unwatchable resources #111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

moio
Copy link
Contributor

@moio moio commented Sep 24, 2024

Listable-but-unwatchable resources such as nodes metrics.k8s.io/v1beta1 allow an Informer to be started, but it will by default log all watch failures.

Add a boolean flag to silence those errors.

partially addresses rancher/rancher#46030
supports rancher/steve#284

best reviewed commit-by-commit

Listable-but-unwatchable resources such as nodes metrics.k8s.io/v1beta1
allow an Informer to be started, but it will by default log all watch
failures.

Add a boolean flag to silence those errors.

Signed-off-by: Silvio Moioli <[email protected]>
Signed-off-by: Silvio Moioli <[email protected]>
@moio moio requested a review from a team as a code owner September 24, 2024 08:48
@moio moio changed the base branch from master to main November 13, 2024 08:09
@prachidamle prachidamle removed the request for review from a team November 14, 2024 19:30
@ericpromislow
Copy link
Contributor

Looks ok, but how is the calling code in steve supposed to know which resources are watchable and which aren't? I assume there's something in one of the schema packages, but haven't found it.

Copy link
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, but I'd like to know how clients determine when watchable should be true.

@moio
Copy link
Contributor Author

moio commented Nov 15, 2024

Yes, we have a method for that in Steve https://github.com/rancher/steve/blob/ea177193f12ade5f64ac4ef58354a629329da9e2/pkg/controllers/schema/schemas.go#L111

This PR actually supports a sister Steve PR rancher/steve#284

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.

3 participants