diff --git a/manifests/base/crds/kubeflow.org_mxjobs.yaml b/manifests/base/crds/kubeflow.org_mxjobs.yaml index 65b36e0b6a..7b5be70d6f 100644 --- a/manifests/base/crds/kubeflow.org_mxjobs.yaml +++ b/manifests/base/crds/kubeflow.org_mxjobs.yaml @@ -16,7 +16,14 @@ spec: singular: mxjob scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.conditions[-1:].type + name: State + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: MXJob is the Schema for the mxjobs API diff --git a/manifests/base/crds/kubeflow.org_pytorchjobs.yaml b/manifests/base/crds/kubeflow.org_pytorchjobs.yaml index d888efbcae..71e202f4f8 100644 --- a/manifests/base/crds/kubeflow.org_pytorchjobs.yaml +++ b/manifests/base/crds/kubeflow.org_pytorchjobs.yaml @@ -16,7 +16,14 @@ spec: singular: pytorchjob scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.conditions[-1:].type + name: State + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: PyTorchJob Represents a PyTorchJob resource. diff --git a/manifests/base/crds/kubeflow.org_tfjobs.yaml b/manifests/base/crds/kubeflow.org_tfjobs.yaml index fb7d6611d8..f0a5f36fc1 100644 --- a/manifests/base/crds/kubeflow.org_tfjobs.yaml +++ b/manifests/base/crds/kubeflow.org_tfjobs.yaml @@ -16,7 +16,14 @@ spec: singular: tfjob scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.conditions[-1:].type + name: State + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: TFJob represents a TFJob resource. diff --git a/manifests/base/crds/kubeflow.org_xgboostjobs.yaml b/manifests/base/crds/kubeflow.org_xgboostjobs.yaml index 338d7dec0e..271df15063 100644 --- a/manifests/base/crds/kubeflow.org_xgboostjobs.yaml +++ b/manifests/base/crds/kubeflow.org_xgboostjobs.yaml @@ -16,7 +16,14 @@ spec: singular: xgboostjob scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.conditions[-1:].type + name: State + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: XGBoostJob is the Schema for the xgboostjobs API diff --git a/pkg/apis/mxnet/v1/mxjob_types.go b/pkg/apis/mxnet/v1/mxjob_types.go index 1f4148c809..7072559087 100644 --- a/pkg/apis/mxnet/v1/mxjob_types.go +++ b/pkg/apis/mxnet/v1/mxjob_types.go @@ -90,6 +90,8 @@ type MXJobStatus struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.conditions[-1:].type` +//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // MXJob is the Schema for the mxjobs API type MXJob struct { diff --git a/pkg/apis/pytorch/v1/pytorchjob_types.go b/pkg/apis/pytorch/v1/pytorchjob_types.go index 114067146f..32b3fddcd6 100644 --- a/pkg/apis/pytorch/v1/pytorchjob_types.go +++ b/pkg/apis/pytorch/v1/pytorchjob_types.go @@ -24,6 +24,8 @@ import ( // +resource:path=pytorchjob //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.conditions[-1:].type` +//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // PyTorchJob Represents a PyTorchJob resource. type PyTorchJob struct { diff --git a/pkg/apis/tensorflow/v1/types.go b/pkg/apis/tensorflow/v1/types.go index 3870686c2f..1dc9197d9f 100644 --- a/pkg/apis/tensorflow/v1/types.go +++ b/pkg/apis/tensorflow/v1/types.go @@ -24,6 +24,8 @@ import ( // +resource:path=tfjob //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.conditions[-1:].type` +//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // TFJob represents a TFJob resource. type TFJob struct { diff --git a/pkg/apis/xgboost/v1/xgboostjob_types.go b/pkg/apis/xgboost/v1/xgboostjob_types.go index 0f87d510e5..8349abc163 100644 --- a/pkg/apis/xgboost/v1/xgboostjob_types.go +++ b/pkg/apis/xgboost/v1/xgboostjob_types.go @@ -34,6 +34,8 @@ type XGBoostJobSpec struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.conditions[-1:].type` +//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object