diff --git a/apis/v1alpha2/gateway_types.go b/apis/v1alpha2/gateway_types.go index 9b827d0f14..6cb91ae534 100644 --- a/apis/v1alpha2/gateway_types.go +++ b/apis/v1alpha2/gateway_types.go @@ -26,6 +26,8 @@ import ( // +kubebuilder:subresource:status // +kubebuilder:storageversion // +kubebuilder:printcolumn:name="Class",type=string,JSONPath=`.spec.gatewayClassName` +// +kubebuilder:printcolumn:name="Address",type=string,JSONPath=`.status.addresses[*].value` +// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status` // +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // Gateway represents an instantiation of a service-traffic handling diff --git a/config/crd/bases/gateway.networking.k8s.io_gateways.yaml b/config/crd/bases/gateway.networking.k8s.io_gateways.yaml index 1d4f6773e3..1dd340ceff 100644 --- a/config/crd/bases/gateway.networking.k8s.io_gateways.yaml +++ b/config/crd/bases/gateway.networking.k8s.io_gateways.yaml @@ -24,6 +24,12 @@ spec: - jsonPath: .spec.gatewayClassName name: Class type: string + - jsonPath: .status.addresses[*].value + name: Address + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string - jsonPath: .metadata.creationTimestamp name: Age type: date