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 #10352

Closed
wants to merge 3 commits into from
Closed

fix CRDExists check #10352

wants to merge 3 commits into from

Conversation

stevenctl
Copy link
Contributor

@stevenctl stevenctl commented Nov 14, 2024

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.

Fixes #10351

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 closed this Nov 14, 2024
ashishb-solo pushed a commit to ashishb-solo/k8sgateway that referenced this pull request Nov 18, 2024
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.

Expand TCPRoute Controller Optionality
2 participants