Skip to content

Commit 2f188c3

Browse files
authored
Fix serialization of StoragePerformanceConfig (#110)
Add possibility to have QC specific Traefik entryPoints
1 parent 5fc5515 commit 2f188c3

File tree

5 files changed

+31
-8
lines changed

5 files changed

+31
-8
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ type StoragePerformanceConfig struct {
496496
// If negative - subtract this number of CPUs from the available CPUs.
497497
// If positive - use this exact number of CPUs.
498498
// +optional
499-
OptimizerCPUBudget *int64 `json:"optimizerCPUBudget,omitempty"`
499+
OptimizerCPUBudget *int64 `json:"optimizer_cpu_budget,omitempty"`
500500
// AsyncScorer enables io_uring when rescoring
501501
// +optional
502-
AsyncScorer *bool `json:"asyncScorer,omitempty"`
502+
AsyncScorer *bool `json:"async_scorer,omitempty"`
503503
}
504504

505505
func (c *QdrantConfiguration) GetService() *QdrantConfigurationService {
@@ -729,6 +729,9 @@ type TraefikConfig struct {
729729
// AllowedSourceRanges specifies the allowed CIDR source ranges for the ingress.
730730
// +optional
731731
AllowedSourceRanges []string `json:"allowedSourceRanges,omitempty"`
732+
// EntryPoints is the list of traefik entry points to use for the ingress route.
733+
// If nothing is set, it will take the entryPoints configured in the operator config.
734+
EntryPoints []string `json:"entryPoint,omitempty"`
732735
}
733736

734737
func (c *TraefikConfig) GetAllowedSourceRanges() []string {

api/v1/zz_generated.deepcopy.go

Lines changed: 5 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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ spec:
188188
performance:
189189
description: Performance configuration
190190
properties:
191-
asyncScorer:
191+
async_scorer:
192192
description: AsyncScorer enables io_uring when rescoring
193193
type: boolean
194-
optimizerCPUBudget:
194+
optimizer_cpu_budget:
195195
description: |-
196196
OptimizerCPUBudget defines the number of CPU allocation.
197197
If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size
@@ -436,6 +436,13 @@ spec:
436436
items:
437437
type: string
438438
type: array
439+
entryPoint:
440+
description: |-
441+
EntryPoints is the list of traefik entry points to use for the ingress route.
442+
If nothing is set, it will take the entryPoints configured in the operator config.
443+
items:
444+
type: string
445+
type: array
439446
type: object
440447
type: object
441448
nodeSelector:

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ spec:
187187
performance:
188188
description: Performance configuration
189189
properties:
190-
asyncScorer:
190+
async_scorer:
191191
description: AsyncScorer enables io_uring when rescoring
192192
type: boolean
193-
optimizerCPUBudget:
193+
optimizer_cpu_budget:
194194
description: |-
195195
OptimizerCPUBudget defines the number of CPU allocation.
196196
If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size
@@ -435,6 +435,13 @@ spec:
435435
items:
436436
type: string
437437
type: array
438+
entryPoint:
439+
description: |-
440+
EntryPoints is the list of traefik entry points to use for the ingress route.
441+
If nothing is set, it will take the entryPoints configured in the operator config.
442+
items:
443+
type: string
444+
type: array
438445
type: object
439446
type: object
440447
nodeSelector:

docs/api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,8 @@ _Appears in:_
12301230

12311231
| Field | Description | Default | Validation |
12321232
| --- | --- | --- | --- |
1233-
| `optimizerCPUBudget` _integer_ | OptimizerCPUBudget defines the number of CPU allocation.<br />If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size<br />If negative - subtract this number of CPUs from the available CPUs.<br />If positive - use this exact number of CPUs. | | |
1234-
| `asyncScorer` _boolean_ | AsyncScorer enables io_uring when rescoring | | |
1233+
| `optimizer_cpu_budget` _integer_ | OptimizerCPUBudget defines the number of CPU allocation.<br />If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size<br />If negative - subtract this number of CPUs from the available CPUs.<br />If positive - use this exact number of CPUs. | | |
1234+
| `async_scorer` _boolean_ | AsyncScorer enables io_uring when rescoring | | |
12351235

12361236

12371237
#### TraefikConfig
@@ -1248,6 +1248,7 @@ _Appears in:_
12481248
| Field | Description | Default | Validation |
12491249
| --- | --- | --- | --- |
12501250
| `allowedSourceRanges` _string array_ | AllowedSourceRanges specifies the allowed CIDR source ranges for the ingress. | | |
1251+
| `entryPoint` _string array_ | EntryPoints is the list of traefik entry points to use for the ingress route.<br />If nothing is set, it will take the entryPoints configured in the operator config. | | |
12511252

12521253

12531254
#### VolumeSnapshotClass

0 commit comments

Comments
 (0)