diff --git a/apis/datasciencecluster/v1/datasciencecluster_types.go b/apis/datasciencecluster/v1/datasciencecluster_types.go index 58d680e70c9..009d128eb58 100644 --- a/apis/datasciencecluster/v1/datasciencecluster_types.go +++ b/apis/datasciencecluster/v1/datasciencecluster_types.go @@ -113,6 +113,8 @@ type DataScienceClusterStatus struct { //+kubebuilder:subresource:status //+kubebuilder:resource:scope=Cluster,shortName=dsc //+kubebuilder:storageversion +//+kubebuilder:printcolumn:name="Status",type=string,JSONPath=.status.phase,description="Status" +//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=.metadata.creationTimestamp,description="The age of the resource" // DataScienceCluster is the Schema for the datascienceclusters API. type DataScienceCluster struct { diff --git a/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml b/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml index 761d550a5dc..c68e57281ad 100644 --- a/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml +++ b/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml @@ -16,7 +16,16 @@ spec: singular: datasciencecluster scope: Cluster versions: - - name: v1 + - additionalPrinterColumns: + - description: Status + jsonPath: .status.phase + name: Status + type: string + - description: The age of the resource + jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: DataScienceCluster is the Schema for the datascienceclusters diff --git a/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml b/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml index 327c95af25a..9aef8a5850d 100644 --- a/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml +++ b/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml @@ -16,7 +16,16 @@ spec: singular: datasciencecluster scope: Cluster versions: - - name: v1 + - additionalPrinterColumns: + - description: Status + jsonPath: .status.phase + name: Status + type: string + - description: The age of the resource + jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: DataScienceCluster is the Schema for the datascienceclusters