Skip to content

Commit 55452f4

Browse files
authored
[CRC-1291] Add support for MaxPayloadIndexCount (#165)
* Add support for MaxPayloadIndexCount * Fix structure * Fix comment * Fix comment
1 parent 77721a9 commit 55452f4

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,17 @@ type QdrantConfigurationCollection struct {
497497
// Vectors specifies the default parameters for vectors
498498
// +optional
499499
Vectors *QdrantConfigurationCollectionVectors `json:"vectors,omitempty"`
500+
// StrictMode specifies the strict mode configuration for the collection
501+
// +optional
502+
StrictMode *QdrantConfigurationCollectionStrictMode `json:"strict_mode,omitempty"`
503+
}
504+
505+
type QdrantConfigurationCollectionStrictMode struct {
506+
// MaxPayloadIndexCount represents the maximal number of payload indexes allowed to be created.
507+
// It can be set for Qdrant version >= 1.16.0
508+
// +optional
509+
// +kubebuilder:validation:Minimum:=1
510+
MaxPayloadIndexCount *uint `json:"max_payload_index_count,omitempty"`
500511
}
501512

502513
type QdrantConfigurationCollectionVectors struct {

api/v1/zz_generated.deepcopy.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ spec:
7676
of replicas of each shard
7777
format: int64
7878
type: integer
79+
strict_mode:
80+
description: StrictMode specifies the strict mode configuration
81+
for the collection
82+
properties:
83+
max_payload_index_count:
84+
description: |-
85+
MaxPayloadIndexCount represents the maximal number of payload indexes allowed to be created.
86+
It can be set for Qdrant version >= 1.16.0
87+
minimum: 1
88+
type: integer
89+
type: object
7990
vectors:
8091
description: Vectors specifies the default parameters for
8192
vectors

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ spec:
7575
of replicas of each shard
7676
format: int64
7777
type: integer
78+
strict_mode:
79+
description: StrictMode specifies the strict mode configuration
80+
for the collection
81+
properties:
82+
max_payload_index_count:
83+
description: |-
84+
MaxPayloadIndexCount represents the maximal number of payload indexes allowed to be created.
85+
It can be set for Qdrant version >= 1.16.0
86+
minimum: 1
87+
type: integer
88+
type: object
7889
vectors:
7990
description: Vectors specifies the default parameters for
8091
vectors

docs/api.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,23 @@ _Appears in:_
842842
| `replication_factor` _integer_ | ReplicationFactor specifies the default number of replicas of each shard | | |
843843
| `write_consistency_factor` _integer_ | WriteConsistencyFactor specifies how many replicas should apply the operation to consider it successful | | |
844844
| `vectors` _[QdrantConfigurationCollectionVectors](#qdrantconfigurationcollectionvectors)_ | Vectors specifies the default parameters for vectors | | |
845+
| `strict_mode` _[QdrantConfigurationCollectionStrictMode](#qdrantconfigurationcollectionstrictmode)_ | StrictMode specifies the strict mode configuration for the collection | | |
846+
847+
848+
#### QdrantConfigurationCollectionStrictMode
849+
850+
851+
852+
853+
854+
855+
856+
_Appears in:_
857+
- [QdrantConfigurationCollection](#qdrantconfigurationcollection)
858+
859+
| Field | Description | Default | Validation |
860+
| --- | --- | --- | --- |
861+
| `max_payload_index_count` _integer_ | MaxPayloadIndexCount represents the maximal number of payload indexes allowed to be created.<br />It can be set for Qdrant version >= 1.16.0 | | Minimum: 1 <br /> |
845862

846863

847864
#### QdrantConfigurationCollectionVectors

0 commit comments

Comments
 (0)