Skip to content

Commit 7f6dd08

Browse files
Add EntityType column to kubectl get for QdrantEntity. (#286)
Show spec.entityType in the default printer columns so list output distinguishes serverless-space, serverless-backup, and other entity types without describing each resource. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 59c5b39 commit 7f6dd08

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

api/v1/qdrantentity_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ func (r *QdrantEntityStatusResult) SetPayloadFromGRPC(payload *structpb.Struct)
120120
// +kubebuilder:object:root=true
121121
// +kubebuilder:subresource:status
122122
// +kubebuilder:resource:path=qdrantentities,singular=qdrantentity,shortName=qe
123+
// +kubebuilder:printcolumn:name="EntityType",type=string,JSONPath=`.spec.entityType`
123124
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
124125
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
125126
// +kubebuilder:selectablefield:JSONPath=`.spec.entityType`

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantentities.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
scope: Namespaced
1919
versions:
2020
- additionalPrinterColumns:
21+
- jsonPath: .spec.entityType
22+
name: EntityType
23+
type: string
2124
- jsonPath: .status.phase
2225
name: Phase
2326
type: string

crds/qdrant.io_qdrantentities.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ spec:
1717
scope: Namespaced
1818
versions:
1919
- additionalPrinterColumns:
20+
- jsonPath: .spec.entityType
21+
name: EntityType
22+
type: string
2023
- jsonPath: .status.phase
2124
name: Phase
2225
type: string

0 commit comments

Comments
 (0)