Merge pull request #2066 from lonelyCZ/pr-work-kind
Add additionalPrinterColumns `KIND` for Work CRD
This commit is contained in:
commit
b168d9cbb6
|
@ -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