Skip to content

Commit

Permalink
add print columns for CRP eviction (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru authored Jan 20, 2025
1 parent 53d9ae2 commit 9f4a632
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/placement/v1beta1/eviction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit 9f4a632

Please sign in to comment.