Skip to content

Commit

Permalink
Document the route kinds compatible for each protocolType (kubernetes…
Browse files Browse the repository at this point in the history
…-sigs#2263)

* Document the route kinds compatible for each protocolType

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Fix grammar

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add suggested changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* chore: run generators

---------

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
Co-authored-by: Shane Utt <shaneutt@linux.com>
  • Loading branch information
abs007 and shaneutt committed Jun 21, 2024
1 parent 02581a1 commit a518fef
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 57 deletions.
9 changes: 9 additions & 0 deletions apis/v1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,15 @@ type AllowedRoutes struct {
//
// +optional
// +kubebuilder:validation:MaxItems=8
//
// The following list states the Route kinds compatible for each protocolType
// for route kinds and protocolTypes included in Gateway API
//
// HTTP: HTTPRoutes, GRPCRoutes
// HTTPS: HTTPRoutes, GRPCRoutes, TLSRoutes
// 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.

2 changes: 1 addition & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

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 @@ -260,6 +260,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, TLSRoutes |
| 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

0 comments on commit a518fef

Please sign in to comment.