Skip to content

Commit

Permalink
Adds Routes field to RouteSelector of Gateway api type
Browse files Browse the repository at this point in the history
  • Loading branch information
danehans committed Jan 24, 2020
1 parent ad23ee7 commit a08e991
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/v1alpha1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ type ListenerTLS struct {

// RouteSelector provides a mechanism to associate routes with this Gateway.
type RouteSelector struct {
// Routes specifies what routes to associate with this Gateway. If defined,
// NamespaceSelector and LabelSelector are ignored and only the specified
// routes are associated with this Gateway.
//
// If undefined, all routes or routes matching NamespaceSelector and/or
// LabelSelector are associated with this Gateway.
//
// +optional
Routes []core.TypedLocalObjectReference `json:"routes"`
// NamespaceSelector specifies a set of namespace labels used for selecting
// routes to associate with this Gateway.
//
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit a08e991

Please sign in to comment.