Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .status.phase to printed columns #1086

Open
wants to merge 1 commit into
base: incubation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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