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

Report proper Conditions in status of HTTPRoute and Gateway when GatewayClass is invalid or doesn't exist #576

Merged
merged 4 commits into from
Apr 17, 2023

Conversation

pleshakov
Copy link
Contributor

(1)
Refactor listener validation

This prepares the codebase for an easy implementation in (2)

(2)
If GatewayClass is invalid or doesn't exist:

  • For Gateway Listeners: NKG will make every listener invalid and
    report Accepted condition with status False and reason
    NoValidGatewayClass in every listener status.
  • For HTTPRoutes: An HTTPRoute will not be able to attach to any
    listener, because they will be invalid. This is already handled: NKG
    will report Accepted condition with status False and reason
    InvalidListener.

Fixes #307

If GatewayClass is invalid or doesn't exist:
- For Gateway Listeners: NKG will make every listener invalid and
report Accepted condition with status False and reason
NoValidGatewayClass in every listener status.
- For HTTPRoutes: An HTTPRoute will not be able to attach to any
listener, because they will be invalid. This is already handled: NKG
will report Accepted condition with status False and reason
InvalidListener.

Fixes #307
@pleshakov pleshakov requested a review from a team as a code owner April 13, 2023 20:13
@github-actions github-actions bot added the enhancement New feature or request label Apr 13, 2023
@pleshakov pleshakov merged commit ae6bec8 into main Apr 17, 2023
@pleshakov pleshakov deleted the enhancement/proper-gatewayclass-problems-handling branch April 17, 2023 20:01
@pleshakov pleshakov changed the title Report proper conditions when GatewayClass is invalid or doesn't exist Report proper Conditions in status of HTTPRoute and Gateway when GatewayClass is invalid or doesn't exist Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Core API: Report proper HTTPRoute and Gateway Condition when GatewayClass is invalid or doesn't exist
2 participants