Skip to content

Commit

Permalink
Add .status.phase to printed columns
Browse files Browse the repository at this point in the history
  • Loading branch information
akram committed Jul 25, 2024
1 parent a08c94a commit 50416d6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apis/datasciencecluster/v1/datasciencecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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
Expand Down

0 comments on commit 50416d6

Please sign in to comment.