Skip to content

Commit

Permalink
Updates route godocs in gateway API type
Browse files Browse the repository at this point in the history
  • Loading branch information
danehans committed Feb 25, 2020
1 parent f3d1e48 commit ac8b39b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 141 deletions.
14 changes: 11 additions & 3 deletions api/v1alpha1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ type GatewaySpec struct {
// Listeners associated with this Gateway. Listeners define what addresses,
// ports, protocols are bound on this Gateway.
Listeners []Listener `json:"listeners"`
// Routes associated with this Gateway. Routes define protocol-specific
// routing to backends (e.g. Services). Typically the resource is
// "httproute" or "tcproute" in group "networking.x.k8s.io", or an
// Routes is a list of resources to associate with the Gateway. A route is a
// resource capable of servicing a request and allows a cluster operator to
// expose a cluster resource (i.e. Service) by externally-reachable URL,
// load-balance traffic and terminate SSL/TLS. Typically, a route is a
// "httproute" or "tcproute" in group "networking.x.k8s.io". However, an
// implementation may support other resources.
//
// If unspecified, no routes will be associated to the Gateway.
//
// Support: Core
//
// +optional
Routes []RouteObjectReference `json:"routes"`
}

Expand Down
146 changes: 13 additions & 133 deletions api/v1alpha1/zz_generated.deepcopy.go

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

12 changes: 7 additions & 5 deletions config/crd/bases/networking.x.k8s.io_gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,13 @@ spec:
type: object
type: array
routes:
description: Routes associated with this Gateway. Routes define protocol-specific
routing to backends (e.g. Services). Typically the resource is "httproute"
or "tcproute" in group "networking.x.k8s.io", or an implementation
may support other resources.
description: "Routes is a list of resources to associate with the Gateway.
A route is a resource capable of servicing a request and allows a
cluster operator to expose a cluster resource (i.e. Service) by externally-reachable
URL, load-balance traffic and terminate SSL/TLS. Typically, a route
is a \"httproute\" or \"tcproute\" in group \"networking.x.k8s.io\".
However, an implementation may support other resources. \n If unspecified,
no routes will be associated to the Gateway. \n Support: Core"
items:
description: LocalObjectReference identifies an API object within
a known namespace.
Expand All @@ -199,7 +202,6 @@ spec:
required:
- class
- listeners
- routes
type: object
status:
description: GatewayStatus defines the observed state of Gateway.
Expand Down

0 comments on commit ac8b39b

Please sign in to comment.