Skip to content

Commit f98e94a

Browse files
authored
Merge pull request #2396 from sunjayBhatia/clarify-attachedroutes
Clarify Gateway Listener Status AttachedRoutes field
2 parents 15bcd3f + f4b953a commit f98e94a

File tree

3 files changed

+80
-5
lines changed

3 files changed

+80
-5
lines changed

apis/v1beta1/gateway_types.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,23 @@ type ListenerStatus struct {
721721
// +kubebuilder:validation:MaxItems=8
722722
SupportedKinds []RouteGroupKind `json:"supportedKinds"`
723723

724-
// AttachedRoutes represents the total number of accepted Routes that have been
724+
// AttachedRoutes represents the total number of Routes that have been
725725
// successfully attached to this Listener.
726+
//
727+
// Successful attachment of a Route to a Listener is based solely on the
728+
// combination of the AllowedRoutes field on the corresponding Listener
729+
// and the Route's ParentRefs field. A Route is successfully attached to
730+
// a Listener when it is selected by the Listener's AllowedRoutes field
731+
// AND the Route has a valid ParentRef selecting the whole Gateway
732+
// resource or a specific Listener as a parent resource (more detail on
733+
// attachment semantics can be found in the documentation on the various
734+
// Route kinds ParentRefs fields). Listener or Route status does not impact
735+
// successful attachment, i.e. the AttachedRoutes field count MUST be set
736+
// for Listeners with condition Accepted: false and MUST count successfully
737+
// attached Routes that may themselves have Accepted: false conditions.
738+
//
739+
// Uses for this field include troubleshooting Route attachment and
740+
// measuring blast radius/impact of changes to a Listener.
726741
AttachedRoutes int32 `json:"attachedRoutes"`
727742

728743
// Conditions describe the current condition of this listener.

config/crd/experimental/gateway.networking.k8s.io_gateways.yaml

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/standard/gateway.networking.k8s.io_gateways.yaml

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)