Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Adds Route Selection Validation for Gateway #226

Closed
wants to merge 1 commit into from

Conversation

danehans
Copy link
Contributor

@danehans danehans commented Feb 26, 2021

  • Adds route selection validation for the Gateway API type.
  • Adds unit tests for Gateway and GatewayClass validation logic.

Fixes: #215
Fixes: #234

Signed-off-by: Daneyon Hansen daneyonhansen@gmail.com

@danehans danehans requested a review from a team as a code owner February 26, 2021 01:49
@danehans danehans requested review from sunjayBhatia and youngnick and removed request for a team February 26, 2021 01:49
@danehans danehans marked this pull request as draft February 26, 2021 01:49
@danehans danehans marked this pull request as ready for review March 2, 2021 18:22
@danehans danehans self-assigned this Mar 9, 2021
@danehans danehans added this to the 1.14.0 milestone Mar 9, 2021
pkg/slice/slice.go Outdated Show resolved Hide resolved
pkg/validation/validation.go Outdated Show resolved Hide resolved
@danehans danehans force-pushed the route_valid branch 2 times, most recently from 1592066 to 5eef417 Compare March 18, 2021 17:22
@danehans
Copy link
Contributor Author

@skriss thanks for the review. Commit 5eef417 resolves your above comments.

go.mod Outdated
sigs.k8s.io/controller-tools v0.4.1
sigs.k8s.io/gateway-api v0.2.0
)

// Remove when https://github.com/projectcontour/contour/pull/3499 is merged.
replace github.com/projectcontour/contour => github.com/danehans/contour v0.13.0-beta.2.0.20210318163459-9274cd62d96d
Copy link
Contributor Author

Choose a reason for hiding this comment

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

xref: #266

Signed-off-by: Daneyon Hansen <daneyonhansen@gmail.com>
@danehans
Copy link
Contributor Author

/hold until Gateway API implementation plan is resolved.

@danehans danehans marked this pull request as draft March 26, 2021 16:13
@danehans danehans removed this from the 1.14.0 milestone Mar 26, 2021
@danehans
Copy link
Contributor Author

xref kubernetes-sigs/gateway-api#597 to add validation pkg upstream.

Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

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

seems like this is on hold, just sending a review to clear it out of my queue, please re-request if this needs it again

@danehans
Copy link
Contributor Author

danehans commented Jun 9, 2021

Closing since GatewayClass and Gateway controllers are being migrated to Contour.

@danehans danehans closed this Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Listener Hostname Validation Validate Routes of a Gateway
3 participants