Skip to content

Commit 644b9f8

Browse files
authored
Add scale subresource (#249)
1 parent 84ce260 commit 644b9f8

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

api/v1/qdrantcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ type NodePVCStatus struct {
11041104
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
11051105
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
11061106
// +kubebuilder:subresource:status
1107+
// +kubebuilder:subresource:scale:specpath=.spec.size,statuspath=.status.currentNodes,selectorpath=.status.selector
11071108

11081109
// QdrantCluster is the Schema for the qdrantclusters API
11091110
type QdrantCluster struct {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,5 +4299,9 @@ spec:
42994299
served: true
43004300
storage: true
43014301
subresources:
4302+
scale:
4303+
labelSelectorPath: .status.selector
4304+
specReplicasPath: .spec.size
4305+
statusReplicasPath: .status.currentNodes
43024306
status: {}
43034307
{{ end }}

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,4 +4298,8 @@ spec:
42984298
served: true
42994299
storage: true
43004300
subresources:
4301+
scale:
4302+
labelSelectorPath: .status.selector
4303+
specReplicasPath: .spec.size
4304+
statusReplicasPath: .status.currentNodes
43014305
status: {}

0 commit comments

Comments
 (0)