diff --git a/apis/placement/v1beta1/eviction_types.go b/apis/placement/v1beta1/eviction_types.go index 5c8abfbce..0a05f1152 100644 --- a/apis/placement/v1beta1/eviction_types.go +++ b/apis/placement/v1beta1/eviction_types.go @@ -14,6 +14,8 @@ import ( // +kubebuilder:resource:scope=Cluster,categories={fleet,fleet-placement},shortName=crpe // +kubebuilder:subresource:status // +kubebuilder:storageversion +// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Valid")].status`,name="Valid",type=string +// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Executed")].status`,name="Executed",type=string // ClusterResourcePlacementEviction is an eviction attempt on a specific placement from // a ClusterResourcePlacement object; one may use this API to force the removal of specific diff --git a/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml b/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml index acec70803..d1a0efbc0 100644 --- a/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml +++ b/config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementevictions.yaml @@ -191,7 +191,14 @@ spec: storage: false subresources: status: {} - - name: v1beta1 + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=="Valid")].status + name: Valid + type: string + - jsonPath: .status.conditions[?(@.type=="Executed")].status + name: Executed + type: string + name: v1beta1 schema: openAPIV3Schema: description: |-