Skip to content

Commit 3bb686d

Browse files
authored
Add support for max_request_size_mb (#146)
1 parent 78cf18b commit 3bb686d

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ type QdrantConfigurationService struct {
524524
// Default is false
525525
// +optional
526526
EnableTLS *bool `json:"enable_tls,omitempty"`
527+
// MaxRequestSizeMb specifies them maximum size of POST data in a single request in megabytes
528+
// Default, if not set is 32 (MB)
529+
// +optional
530+
MaxRequestSizeMb *int64 `json:"max_request_size_mb,omitempty"`
527531
}
528532

529533
func (c *QdrantConfigurationService) GetApiKey() *QdrantSecretKeyRef {
@@ -561,6 +565,13 @@ func (c *QdrantConfigurationService) GetEnableTLS() bool {
561565
return *c.EnableTLS
562566
}
563567

568+
func (c *QdrantConfigurationService) GetMaxRequestSizeMb() int64 {
569+
if c == nil || c.MaxRequestSizeMb == nil {
570+
return 32
571+
}
572+
return *c.MaxRequestSizeMb
573+
}
574+
564575
type QdrantSecretKeyRef struct {
565576
// SecretKeyRef to the secret containing data to configure the qdrant instance
566577
// +optional

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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ spec:
152152
JwtRbac specifies whether to enable jwt rbac for the qdrant instance
153153
Default is false
154154
type: boolean
155+
max_request_size_mb:
156+
description: |-
157+
MaxRequestSizeMb specifies them maximum size of POST data in a single request in megabytes
158+
Default, if not set is 32 (MB)
159+
format: int64
160+
type: integer
155161
read_only_api_key:
156162
description: ReadOnlyApiKey for the qdrant instance
157163
properties:

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ spec:
151151
JwtRbac specifies whether to enable jwt rbac for the qdrant instance
152152
Default is false
153153
type: boolean
154+
max_request_size_mb:
155+
description: |-
156+
MaxRequestSizeMb specifies them maximum size of POST data in a single request in megabytes
157+
Default, if not set is 32 (MB)
158+
format: int64
159+
type: integer
154160
read_only_api_key:
155161
description: ReadOnlyApiKey for the qdrant instance
156162
properties:

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ _Appears in:_
878878
| `jwt_rbac` _boolean_ | JwtRbac specifies whether to enable jwt rbac for the qdrant instance<br />Default is false | | |
879879
| `hide_jwt_dashboard` _boolean_ | HideJwtDashboard specifies whether to hide the JWT dashboard of the embedded UI<br />Default is false | | |
880880
| `enable_tls` _boolean_ | EnableTLS specifies whether to enable tls for the qdrant instance<br />Default is false | | |
881+
| `max_request_size_mb` _integer_ | MaxRequestSizeMb specifies them maximum size of POST data in a single request in megabytes<br />Default, if not set is 32 (MB) | | |
881882

882883

883884
#### QdrantConfigurationTLS

0 commit comments

Comments
 (0)