Skip to content

Commit 82445dd

Browse files
authored
api: Update gateway status to include AttachedListeners (#4211)
1 parent cf6f6cf commit 82445dd

File tree

7 files changed

+101
-3
lines changed

7 files changed

+101
-3
lines changed

apis/v1/gateway_types.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,20 @@ type GatewayStatus struct {
10081008
// +listMapKey=name
10091009
// +kubebuilder:validation:MaxItems=64
10101010
Listeners []ListenerStatus `json:"listeners,omitempty"`
1011+
1012+
// AttachedListeners represents the total number of ListenerSets that have been
1013+
// successfully attached to this Gateway.
1014+
//
1015+
// A ListenerSet is successfully attached to a Gateway
1016+
// when all the following conditions are met :
1017+
// - The ListenerSet is selected by the Gateway's AllowedListeners field
1018+
// - The ListenerSet has a valid ParentRef selecting the Gateway
1019+
// - The ListenerSet's status has the condition "Accepted: true"
1020+
//
1021+
// Uses for this field include troubleshooting AttachedListeners attachment and
1022+
// measuring blast radius/impact of changes to a Gateway.
1023+
// +optional
1024+
AttachedListeners *int32 `json:"attachedListeners,omitempty"`
10111025
}
10121026

10131027
// GatewayInfrastructure defines infrastructure level attributes about a Gateway instance.

apis/v1/zz_generated.deepcopy.go

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

applyconfiguration/apis/v1/gatewaystatus.go

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

applyconfiguration/internal/internal.go

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

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

Lines changed: 30 additions & 0 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: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

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

0 commit comments

Comments
 (0)