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

Improve error messages for wrong/missing CRD versions during WATCH #184

Open
bcotton opened this issue Jan 22, 2024 · 0 comments
Open

Improve error messages for wrong/missing CRD versions during WATCH #184

bcotton opened this issue Jan 22, 2024 · 0 comments

Comments

@bcotton
Copy link
Contributor

bcotton commented Jan 22, 2024

During the move of a set of CRDs from one version to the next (not a version bump, but a replace e.g. v0_0 -> v1aplha1) I introduced a discrepancy between the CRD that was loaded in the API server vs the schema that was used in the call torunner.WatchKind.

The following is the error that was generated. There was ultimately a 404 being thrown, but the root cause was a missing version on the CRD.

It would be nice to have the watcher check for the existence of the CRD+Version, or catch the 404 and report a better error.

W0118 03:12:32.788684      12 reflector.go:539] github.com/grafana/grafana-app-sdk/operator/informer_kubernetes.go:208: failed to list <unspecified>: the server could not find the requested resource (get components.servicemodel.ext.grafana.com)
E0118 03:12:32.788733      12 reflector.go:147] github.com/grafana/grafana-app-sdk/operator/informer_kubernetes.go:208: Failed to watch <unspecified>: failed to list <unspecified>: the server could not find the requested resource (get components.servicemodel.ext.grafana.com)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants