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 status for parentRef with invalid listener in HTTPRoute #350

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

kate-osborn
Copy link
Contributor

Problem: If an HTTPRoute references an invalid listener in a parentRef, the status is incorrectly reported as Accepted:True

Fix: Check if the listener associated with the parentRef is valid when binding HTTPRoutes to listeners. If not valid, mark the section name as invalid with a condition of Accepted:False and a Reason of InvalidListener

Note: The spec does not define a Reason that covers this case where the listener is invalid. This PR adds a new route Reason InvalidListener for this case. There's an open discussion about adding this Reason to the spec: kubernetes-sigs/gateway-api#1445

@kate-osborn kate-osborn requested a review from a team as a code owner January 5, 2023 18:28
@github-actions github-actions bot added the bug Something isn't working label Jan 5, 2023
@kate-osborn kate-osborn requested a review from pleshakov January 5, 2023 18:28
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kate-osborn kate-osborn force-pushed the fix/invalid-listener-route-status branch from cd15f90 to ff89684 Compare January 6, 2023 22:24
@kate-osborn kate-osborn merged commit 5d100aa into main Jan 6, 2023
@kate-osborn kate-osborn deleted the fix/invalid-listener-route-status branch January 6, 2023 22:31
@pleshakov pleshakov changed the title Fix status for parentRef with invalid listener Fix status for parentRef with invalid listener in HTTPRoute Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants