Skip to content

Commit 8126896

Browse files
authored
Add BootstrapNodeAnnotationKey constant (#227)
1 parent 34e0884 commit 8126896

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

api/v1/qdrantcluster_types.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const (
3232
// ReinitAnnotationKey is the annotation key to trigger reinitialization of the given cluster.
3333
// The annotation value is ignored and can be used to document why reinitialization is requested.
3434
ReinitAnnotationKey = "operator.qdrant.com/reinit"
35+
// BootstrapNodeAnnotationKey is annotation key to explicitely specify the bootstrap node.
36+
// This should be only used when automatically detected bootstrap node is in bad state.
37+
BootstrapNodeAnnotationKey = "operator.qdrant.com/bootstrap-node"
3538
)
3639

3740
// GPUType specifies the type of GPU to use.
@@ -913,11 +916,6 @@ type QdrantClusterStatus struct {
913916
// If the cluster want to scale-up concurrently (aka the delete is in progress), new nodes are required to accomplish.
914917
// +optional
915918
DeleteInProgessNodeIndexes []int `json:"deleteInProgressNodeIndexes,omitempty"`
916-
// BootstrapNode specifies the node in the cluster which will be used for bootstrapping a new node.
917-
// Should be a value from AvailableNodeIndexes.
918-
// As default the value from AvailableNodeIndexes[0] will be used.
919-
// +optional
920-
BootstrapNode int `json:"bootstrapNode,omitempty"`
921919
// If set the operator will scale down 1 peer and reset the bool.
922920
// If you want to remove more then 1 peer, you need to repeat setting this bool
923921
// +optional

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,12 +1223,6 @@ spec:
12231223
description: AvailableNodes specifies the number of available nodes
12241224
in the cluster
12251225
type: integer
1226-
bootstrapNode:
1227-
description: |-
1228-
BootstrapNode specifies the node in the cluster which will be used for bootstrapping a new node.
1229-
Should be a value from AvailableNodeIndexes.
1230-
As default the value from AvailableNodeIndexes[0] will be used.
1231-
type: integer
12321226
clusterManagerResponse:
12331227
description: The last response from the cluster-manager manage endpoint
12341228
properties:

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,12 +1222,6 @@ spec:
12221222
description: AvailableNodes specifies the number of available nodes
12231223
in the cluster
12241224
type: integer
1225-
bootstrapNode:
1226-
description: |-
1227-
BootstrapNode specifies the node in the cluster which will be used for bootstrapping a new node.
1228-
Should be a value from AvailableNodeIndexes.
1229-
As default the value from AvailableNodeIndexes[0] will be used.
1230-
type: integer
12311225
clusterManagerResponse:
12321226
description: The last response from the cluster-manager manage endpoint
12331227
properties:

0 commit comments

Comments
 (0)