Skip to content

Commit 1e53239

Browse files
committed
add GatewayClass Accepted print column
Adds the status of the "Accepted" condition to the GatewayClass print columns list. Signed-off-by: Steve Kriss <[email protected]>
1 parent c7fe7e4 commit 1e53239

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

apis/v1alpha2/gatewayclass_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
// +kubebuilder:subresource:status
2828
// +kubebuilder:storageversion
2929
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controllerName`
30+
// +kubebuilder:printcolumn:name="Accepted",type=string,JSONPath=`.status.conditions[?(@.type=="Accepted")].status`
3031
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
3132
// +kubebuilder:printcolumn:name="Description",type=string,JSONPath=`.spec.description`,priority=1
3233

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

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/stable/gateway.networking.k8s.io_gatewayclasses.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)