Skip to content

Commit 88e9e5e

Browse files
authored
Fix: .Inference.Enabled is not a pointer (#88)
We are not interested into three states on that field. The default value is `false`.
1 parent 260a49e commit 88e9e5e

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ type QdrantConfiguration struct {
431431

432432
type InferenceConfig struct {
433433
// Enabled specifies whether to enable inference for the cluster or not.
434+
// +kubebuilder:default=false
434435
// +optional
435-
Enabled *bool `json:"enabled,omitempty"`
436+
Enabled bool `json:"enabled"`
436437
}
437438

438439
type StorageConfig struct {

api/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 6 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ spec:
9696
Cloud only. If not set Inference is not available to this cluster.
9797
properties:
9898
enabled:
99+
default: false
99100
description: Enabled specifies whether to enable inference
100101
for the cluster or not.
101102
type: boolean

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ spec:
9595
Cloud only. If not set Inference is not available to this cluster.
9696
properties:
9797
enabled:
98+
default: false
9899
description: Enabled specifies whether to enable inference
99100
for the cluster or not.
100101
type: boolean

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ _Appears in:_
168168

169169
| Field | Description | Default | Validation |
170170
| --- | --- | --- | --- |
171-
| `enabled` _boolean_ | Enabled specifies whether to enable inference for the cluster or not. | | |
171+
| `enabled` _boolean_ | Enabled specifies whether to enable inference for the cluster or not. | false | |
172172

173173

174174
#### Ingress

0 commit comments

Comments
 (0)