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 CRDExists check #10353

Merged
merged 3 commits into from
Nov 14, 2024
Merged

fix CRDExists check #10353

merged 3 commits into from
Nov 14, 2024

Conversation

stevenctl
Copy link

@stevenctl stevenctl commented Nov 14, 2024

kgateway-dev#10351

Description

The current method of checking CRD existence fails with error checking if TCPRoute CRD exists: the server could not find the requested resource when I have v1 CRDs installed.

Code changes

  • Check if errors.IsNotFound and return false, nil. The check didn't error, but we didn't find it.
  • A few log lines to help find where we get stuck in the setup

Testing steps

  • Manually verified it breaks without this and adding this line fixes it
  • It would be nice to replicate this in TestConfigureHTTPRouteBackingDestinationsWithServiceAndWithoutTCPRoute style test, but I don't know how the APIServer will behave... we need it to think it never saw that group version?

@stevenctl stevenctl merged commit 8a38144 into solo-io:main Nov 14, 2024
18 checks passed
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