-
Notifications
You must be signed in to change notification settings - Fork 3.4k
gateway-api: Fix Gateway reconciler failure when TLSRoute CRD is not installed #38874
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
Conversation
Commit 10bd55d does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
10bd55d
to
0661bfa
Compare
Commit c772fb0 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
/test |
c772fb0
to
8b7a0af
Compare
/release-note-bug-fix |
8b7a0af
to
14e22b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR, I have couple of comments as per below.
Commits 5d1fdd2, 954c9cd do not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Thank you @sayboras for your feedback! I've implemented your suggested changes to simplify the code:
This approach maintains the core functionality while making the code cleaner and more consistent with the existing codebase style. Let me know if you'd like me to make any additional changes! |
954c9cd
to
3db9a7e
Compare
Commit 5d1fdd2 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
3db9a7e
to
55b86b1
Compare
Commit b61ae4f does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
b61ae4f
to
f8d4f61
Compare
Commit e171692 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
…installed Signed-off-by: Syed Azeez <syedazeez337@gmail.com>
e171692
to
eacfb91
Compare
This LGTM but we won't be able to merge it without the "Signed-off-by:". I use
To update that when I forget, personally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks and LGTM ✔️
/test |
Just some FYI, I created a follow up PR to enhance this one |
Marked this as eligible for backporting to v1.17, see this message for more info. |
Description
This PR fixes an issue where the Gateway API reconciler fails when the experimental TLSRoute CRD is not installed. According to the documentation, the experimental Gateway API CRDs are not required if TLSRoutes are not going to be used. However, the current implementation tries to list TLSRoutes unconditionally, which fails with an error when the CRD is not installed.
The fix adds a check to determine if the TLSRoute CRD is supported in the cluster before attempting to list TLSRoutes. When the CRD is not installed, the Gateway reconciler now uses an empty TLSRouteList instead of failing with an error.
Related issues
Fixes: #38420
How has this been tested
I've tested this by:
HasTLSRouteSupport
helper functionChecklist