Skip to content

Commit 6557460

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 c7da26b commit 6557460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-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

0 commit comments

Comments
 (0)