Skip to content

Commit

Permalink
Making GatewayClass an optional resource
Browse files Browse the repository at this point in the history
This has been a popular request for IngressClass as well and would make
namespace-scoped implementations of the API possible.
  • Loading branch information
robscott committed Apr 19, 2021
1 parent 71f9311 commit 70a72ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions apis/v1alpha1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ type GatewayList struct {
// webhook, but there are many cases that will require asynchronous
// signaling via the GatewayStatus block.
type GatewaySpec struct {
// GatewayClassName used for this Gateway. This is the name of a
// GatewayClass resource.
// GatewayClassName used for this Gateway. This may refer to a GatewayClass
// resource by name.
//
// Implementations may also support using this field to specify a controller
// name directly without a corresponding GatewayClass resource. This is
// particularly useful for namespace-scoped implementations that may not
// have access to the cluster-scoped GatewayClass resource.
//
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
Expand Down
8 changes: 6 additions & 2 deletions config/crd/bases/networking.x-k8s.io_gateways.yaml

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

0 comments on commit 70a72ab

Please sign in to comment.