diff --git a/charts/karmada/_crds/bases/work.karmada.io_works.yaml b/charts/karmada/_crds/bases/work.karmada.io_works.yaml index 68183af46e46..e2e46c0524fd 100644 --- a/charts/karmada/_crds/bases/work.karmada.io_works.yaml +++ b/charts/karmada/_crds/bases/work.karmada.io_works.yaml @@ -16,6 +16,9 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: + - jsonPath: .spec.workload.manifests[*].kind + name: Kind + type: string - jsonPath: .status.conditions[?(@.type=="Applied")].status name: Applied type: string diff --git a/pkg/apis/work/v1alpha1/work_types.go b/pkg/apis/work/v1alpha1/work_types.go index 3b1650a64ffd..0bc9bfc0036a 100644 --- a/pkg/apis/work/v1alpha1/work_types.go +++ b/pkg/apis/work/v1alpha1/work_types.go @@ -19,6 +19,7 @@ const ( // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:subresource:status +// +kubebuilder:printcolumn:JSONPath=`.spec.workload.manifests[*].kind`,name="Kind",type=string // +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Applied")].status`,name="Applied",type=string // +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date