Skip to content

Misleading MissingCRDException exception #552

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

Closed
lburgazzoli opened this issue Sep 22, 2021 · 0 comments · Fixed by #558
Closed

Misleading MissingCRDException exception #552

lburgazzoli opened this issue Sep 22, 2021 · 0 comments · Fixed by #558

Comments

@lburgazzoli
Copy link
Collaborator

lburgazzoli commented Sep 22, 2021

If an event source fails to start and the error code is 404, the DefaultEventSourceManager wraps it with a MissingCRDException [1] which the ConfiguredController re-wrap and include details about the CRD of the controller resulting in a misleading message as the exception will report that the CRD of the controller is missing but it may not be the case.

[1] https://github.com/java-operator-sdk/java-operator-sdk/blob/master/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/DefaultEventSourceManager.java#L92-L97
[2] https://github.com/java-operator-sdk/java-operator-sdk/blob/master/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ConfiguredController.java#L177-L182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant