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

Document the route kinds compatible for each protocolType #2263

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apis/v1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,15 @@ type AllowedRoutes struct {
//
// +optional
// +kubebuilder:validation:MaxItems=8
//
// The following list states the Route kinds compatible for each protocolType
shaneutt marked this conversation as resolved.
Show resolved Hide resolved
// for route kinds and protocolTypes included in Gateway API
//
// HTTP: HTTPRoutes, GRPCRoutes
// HTTPS: HTTPRoutes, GRPCRoutes, TLSRoute
shaneutt marked this conversation as resolved.
Show resolved Hide resolved
// TLS: TLSRoutes, TCPRoutes
// TCP: TCPRoutes
// UDP: UDPRoutes
Kinds []RouteGroupKind `json:"kinds,omitempty"`
}

Expand Down
56 changes: 28 additions & 28 deletions config/crd/experimental/gateway.networking.k8s.io_gateways.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions config/crd/standard/gateway.networking.k8s.io_gateways.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions site-src/concepts/api-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,17 @@ following mechanisms:
If none of the above are specified, a Gateway listener will trust Routes
attached from the same namespace that support the listener protocol.

The following table shows the **Route kinds** compatible for each **protocolType**

|protocolType|core kind/s compatible|
|------------|----------------------|
| HTTP | HTTPRoutes, GRPCRoutes |
| HTTPS | HTTPRoutes, GRPCRoutes, TLSRoute |
shaneutt marked this conversation as resolved.
Show resolved Hide resolved
| TLS | TLSRoutes, TCPRoutes |
| TCP | TCPRoutes |
| UDP | UDPRoutes |


#### Further Gateway - Route attachment examples

The following `my-route` Route wants to attach to the `foo-gateway` in the
Expand Down