Unverified Commit dd93d845 authored by Jonathan Tong's avatar Jonathan Tong Committed by GitHub
Browse files

feat: add print columns with ready condition for v1alpha1 api types like DGD (#5542)


Signed-off-by: default avatarJont828 <jt572@cornell.edu>
parent 165f326d
...@@ -41,6 +41,10 @@ spec: ...@@ -41,6 +41,10 @@ spec:
jsonPath: .status.conditions[?(@.type=='Available')].status jsonPath: .status.conditions[?(@.type=='Available')].status
name: Available name: Available
type: string type: string
- description: Backend framework (sglang, vllm, trtllm)
jsonPath: .spec.backendFramework
name: Backend
type: string
- jsonPath: .metadata.creationTimestamp - jsonPath: .metadata.creationTimestamp
name: Age name: Age
type: date type: date
......
...@@ -32,7 +32,19 @@ spec: ...@@ -32,7 +32,19 @@ spec:
singular: dynamographdeployment singular: dynamographdeployment
scope: Namespaced scope: Namespaced
versions: versions:
- name: v1alpha1 - additionalPrinterColumns:
- description: Ready status of the graph deployment
jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- description: Backend framework (sglang, vllm, trtllm)
jsonPath: .spec.backendFramework
name: Backend
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: DynamoGraphDeployment is the Schema for the dynamographdeployments API. description: DynamoGraphDeployment is the Schema for the dynamographdeployments API.
......
...@@ -198,6 +198,7 @@ type DynamoComponentDeploymentStatus struct { ...@@ -198,6 +198,7 @@ type DynamoComponentDeploymentStatus struct {
// +kubebuilder:storageversion // +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="DynamoComponent",type="string",JSONPath=".spec.dynamoComponent",description="Dynamo component" // +kubebuilder:printcolumn:name="DynamoComponent",type="string",JSONPath=".spec.dynamoComponent",description="Dynamo component"
// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Available" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Available"
// +kubebuilder:printcolumn:name="Backend",type="string",JSONPath=`.spec.backendFramework`,description="Backend framework (sglang, vllm, trtllm)"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:shortName=dcd // +kubebuilder:resource:shortName=dcd
// DynamoComponentDeployment is the Schema for the dynamocomponentdeployments API // DynamoComponentDeployment is the Schema for the dynamocomponentdeployments API
......
...@@ -174,6 +174,9 @@ type ServiceReplicaStatus struct { ...@@ -174,6 +174,9 @@ type ServiceReplicaStatus struct {
// +kubebuilder:object:root=true // +kubebuilder:object:root=true
// +kubebuilder:subresource:status // +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=dgd // +kubebuilder:resource:shortName=dgd
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type=="Ready")].status`,description="Ready status of the graph deployment"
// +kubebuilder:printcolumn:name="Backend",type="string",JSONPath=`.spec.backendFramework`,description="Backend framework (sglang, vllm, trtllm)"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// DynamoGraphDeployment is the Schema for the dynamographdeployments API. // DynamoGraphDeployment is the Schema for the dynamographdeployments API.
type DynamoGraphDeployment struct { type DynamoGraphDeployment struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
......
...@@ -41,6 +41,10 @@ spec: ...@@ -41,6 +41,10 @@ spec:
jsonPath: .status.conditions[?(@.type=='Available')].status jsonPath: .status.conditions[?(@.type=='Available')].status
name: Available name: Available
type: string type: string
- description: Backend framework (sglang, vllm, trtllm)
jsonPath: .spec.backendFramework
name: Backend
type: string
- jsonPath: .metadata.creationTimestamp - jsonPath: .metadata.creationTimestamp
name: Age name: Age
type: date type: date
......
...@@ -32,7 +32,19 @@ spec: ...@@ -32,7 +32,19 @@ spec:
singular: dynamographdeployment singular: dynamographdeployment
scope: Namespaced scope: Namespaced
versions: versions:
- name: v1alpha1 - additionalPrinterColumns:
- description: Ready status of the graph deployment
jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- description: Backend framework (sglang, vllm, trtllm)
jsonPath: .spec.backendFramework
name: Backend
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: DynamoGraphDeployment is the Schema for the dynamographdeployments API. description: DynamoGraphDeployment is the Schema for the dynamographdeployments API.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment