Add additionalPrinterColumns Kind for Work CRD
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
This commit is contained in:
parent
58b179042a
commit
fd7139daa0
|
@ -20,6 +20,9 @@ spec:
|
|||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .spec.workload.manifests[*].kind
|
||||
name: Workload-Kind
|
||||
type: string
|
||||
- jsonPath: .status.conditions[?(@.type=="Applied")].status
|
||||
name: Applied
|
||||
type: string
|
||||
|
|
|
@ -36,6 +36,7 @@ const (
|
|||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:categories={karmada-io},shortName=wk
|
||||
// +kubebuilder:printcolumn:JSONPath=`.spec.workload.manifests[*].kind`,name="Workload-Kind",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Applied")].status`,name="Applied",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
|
||||
|
||||
|
|
Loading…
Reference in New Issue