qdrant-operator 0.3.1__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/PKG-INFO +10 -4
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/README.md +7 -3
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/pyproject.toml +7 -2
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/pyproject.toml.orig +7 -2
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/container.py +14 -2
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/domain.py +511 -23
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/handlers.py +174 -11
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/helm_adapter.py +42 -7
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/kubernetes_adapter.py +105 -2
- qdrant_operator-0.4.0/src/qdrant_operator/logs.py +24 -0
- qdrant_operator-0.4.0/src/qdrant_operator/main.py +26 -0
- qdrant_operator-0.4.0/src/qdrant_operator/metrics.py +68 -0
- qdrant_operator-0.4.0/src/qdrant_operator/peers.py +354 -0
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/ports.py +64 -6
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/qdrant_adapter.py +86 -7
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/s3_adapter.py +29 -1
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/usecases.py +628 -36
- qdrant_operator-0.3.1/src/qdrant_operator/main.py +0 -48
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/LICENSE +0 -0
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/__init__.py +0 -0
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/jwt_adapter.py +0 -0
- {qdrant_operator-0.3.1 → qdrant_operator-0.4.0}/src/qdrant_operator/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qdrant-operator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Kubernetes operator for Qdrant vector database
|
|
5
5
|
Keywords: kubernetes,operator,qdrant,kopf,vector-database
|
|
6
6
|
Author: Mohamed Tahrioui
|
|
@@ -14,6 +14,7 @@ Classifier: Operating System :: OS Independent
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
18
|
Classifier: Topic :: Database
|
|
18
19
|
Classifier: Topic :: System :: Clustering
|
|
19
20
|
Classifier: Typing :: Typed
|
|
@@ -24,6 +25,7 @@ Requires-Dist: aioboto3>=13.0.0
|
|
|
24
25
|
Requires-Dist: croniter>=5.0.0
|
|
25
26
|
Requires-Dist: loguru>=0.7.3
|
|
26
27
|
Requires-Dist: pyjwt>=2.9
|
|
28
|
+
Requires-Dist: prometheus-client>=0.26.0
|
|
27
29
|
Requires-Python: >=3.12
|
|
28
30
|
Project-URL: Homepage, https://github.com/4thel00z/qdrant-operator
|
|
29
31
|
Project-URL: Repository, https://github.com/4thel00z/qdrant-operator
|
|
@@ -108,7 +110,7 @@ Override default values:
|
|
|
108
110
|
```bash
|
|
109
111
|
helm install qdrant-operator ./charts/qdrant-operator \
|
|
110
112
|
--set operator.logLevel=DEBUG \
|
|
111
|
-
--set resources.limits.memory=
|
|
113
|
+
--set resources.limits.memory=2Gi
|
|
112
114
|
```
|
|
113
115
|
|
|
114
116
|
Or use a values file:
|
|
@@ -391,6 +393,9 @@ uv run pytest
|
|
|
391
393
|
# Run integration tests (requires k8s cluster + helm)
|
|
392
394
|
make test-integration
|
|
393
395
|
|
|
396
|
+
# Run end-to-end tests against the operator deployed on kind
|
|
397
|
+
make e2e-image e2e-deploy test-e2e
|
|
398
|
+
|
|
394
399
|
# Lint and format
|
|
395
400
|
uv run ruff check src tests
|
|
396
401
|
uv run ruff format src tests
|
|
@@ -400,8 +405,9 @@ uv run pyright src tests
|
|
|
400
405
|
```
|
|
401
406
|
|
|
402
407
|
## Releasing
|
|
403
|
-
CI (`.github/workflows/ci.yml`) runs lint, pyright, unit tests, chart lint, a wheel/image build
|
|
404
|
-
kind
|
|
408
|
+
CI (`.github/workflows/ci.yml`) runs lint, pyright, unit tests, chart lint, a wheel/image build, the
|
|
409
|
+
adapter integration suite on kind and an end-to-end run of the operator deployed by its chart on
|
|
410
|
+
kind, on every push and pull request.
|
|
405
411
|
|
|
406
412
|
Releases are driven by [release-please](https://github.com/googleapis/release-please) from the
|
|
407
413
|
conventional commit history, all inside `.github/workflows/release.yml` on pushes to `main`:
|
|
@@ -75,7 +75,7 @@ Override default values:
|
|
|
75
75
|
```bash
|
|
76
76
|
helm install qdrant-operator ./charts/qdrant-operator \
|
|
77
77
|
--set operator.logLevel=DEBUG \
|
|
78
|
-
--set resources.limits.memory=
|
|
78
|
+
--set resources.limits.memory=2Gi
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Or use a values file:
|
|
@@ -358,6 +358,9 @@ uv run pytest
|
|
|
358
358
|
# Run integration tests (requires k8s cluster + helm)
|
|
359
359
|
make test-integration
|
|
360
360
|
|
|
361
|
+
# Run end-to-end tests against the operator deployed on kind
|
|
362
|
+
make e2e-image e2e-deploy test-e2e
|
|
363
|
+
|
|
361
364
|
# Lint and format
|
|
362
365
|
uv run ruff check src tests
|
|
363
366
|
uv run ruff format src tests
|
|
@@ -367,8 +370,9 @@ uv run pyright src tests
|
|
|
367
370
|
```
|
|
368
371
|
|
|
369
372
|
## Releasing
|
|
370
|
-
CI (`.github/workflows/ci.yml`) runs lint, pyright, unit tests, chart lint, a wheel/image build
|
|
371
|
-
kind
|
|
373
|
+
CI (`.github/workflows/ci.yml`) runs lint, pyright, unit tests, chart lint, a wheel/image build, the
|
|
374
|
+
adapter integration suite on kind and an end-to-end run of the operator deployed by its chart on
|
|
375
|
+
kind, on every push and pull request.
|
|
372
376
|
|
|
373
377
|
Releases are driven by [release-please](https://github.com/googleapis/release-please) from the
|
|
374
378
|
conventional commit history, all inside `.github/workflows/release.yml` on pushes to `main`:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "qdrant-operator"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
description = "Kubernetes operator for Qdrant vector database"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -21,6 +21,7 @@ classifiers = [
|
|
|
21
21
|
"Programming Language :: Python :: 3",
|
|
22
22
|
"Programming Language :: Python :: 3.12",
|
|
23
23
|
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Programming Language :: Python :: 3.14",
|
|
24
25
|
"Topic :: Database",
|
|
25
26
|
"Topic :: System :: Clustering",
|
|
26
27
|
"Typing :: Typed",
|
|
@@ -34,6 +35,7 @@ dependencies = [
|
|
|
34
35
|
"croniter>=5.0.0",
|
|
35
36
|
"loguru>=0.7.3",
|
|
36
37
|
"pyjwt>=2.9",
|
|
38
|
+
"prometheus-client>=0.26.0",
|
|
37
39
|
]
|
|
38
40
|
|
|
39
41
|
[[project.authors]]
|
|
@@ -96,4 +98,7 @@ reportMissingTypeStubs = false
|
|
|
96
98
|
[tool.pytest.ini_options]
|
|
97
99
|
asyncio_mode = "auto"
|
|
98
100
|
asyncio_default_fixture_loop_scope = "function"
|
|
99
|
-
markers = [
|
|
101
|
+
markers = [
|
|
102
|
+
"integration: needs a reachable Kubernetes cluster and helm (set QDRANT_OPERATOR_INTEGRATION=1)",
|
|
103
|
+
"e2e: needs the operator deployed by its chart on a cluster (set QDRANT_OPERATOR_E2E=1)",
|
|
104
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "qdrant-operator"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
description = "Kubernetes operator for Qdrant vector database"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -16,6 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Programming Language :: Python :: 3",
|
|
17
17
|
"Programming Language :: Python :: 3.12",
|
|
18
18
|
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Programming Language :: Python :: 3.14",
|
|
19
20
|
"Topic :: Database",
|
|
20
21
|
"Topic :: System :: Clustering",
|
|
21
22
|
"Typing :: Typed",
|
|
@@ -29,6 +30,7 @@ dependencies = [
|
|
|
29
30
|
"croniter>=5.0.0",
|
|
30
31
|
"loguru>=0.7.3",
|
|
31
32
|
"pyjwt>=2.9",
|
|
33
|
+
"prometheus-client>=0.26.0",
|
|
32
34
|
]
|
|
33
35
|
|
|
34
36
|
[dependency-groups]
|
|
@@ -77,4 +79,7 @@ reportMissingTypeStubs = false
|
|
|
77
79
|
[tool.pytest.ini_options]
|
|
78
80
|
asyncio_mode = "auto"
|
|
79
81
|
asyncio_default_fixture_loop_scope = "function"
|
|
80
|
-
markers = [
|
|
82
|
+
markers = [
|
|
83
|
+
"integration: needs a reachable Kubernetes cluster and helm (set QDRANT_OPERATOR_INTEGRATION=1)",
|
|
84
|
+
"e2e: needs the operator deployed by its chart on a cluster (set QDRANT_OPERATOR_E2E=1)",
|
|
85
|
+
]
|
|
@@ -8,6 +8,7 @@ from qdrant_operator.jwt_adapter import JwtAdapter
|
|
|
8
8
|
from qdrant_operator.kubernetes_adapter import KubernetesAdapter
|
|
9
9
|
from qdrant_operator.qdrant_adapter import QdrantAdapter
|
|
10
10
|
from qdrant_operator.s3_adapter import S3Adapter
|
|
11
|
+
from qdrant_operator.usecases import CleanupBackupSnapshots
|
|
11
12
|
from qdrant_operator.usecases import DeleteBackupData
|
|
12
13
|
from qdrant_operator.usecases import DeleteCluster
|
|
13
14
|
from qdrant_operator.usecases import DeleteCollection
|
|
@@ -18,8 +19,10 @@ from qdrant_operator.usecases import ExpireBackup
|
|
|
18
19
|
from qdrant_operator.usecases import IssueAccessKey
|
|
19
20
|
from qdrant_operator.usecases import ObserveCluster
|
|
20
21
|
from qdrant_operator.usecases import ProcessSchedule
|
|
22
|
+
from qdrant_operator.usecases import RebalanceShards
|
|
21
23
|
from qdrant_operator.usecases import ReconcileCluster
|
|
22
24
|
from qdrant_operator.usecases import ReconcileCollection
|
|
25
|
+
from qdrant_operator.usecases import RecoverDeadPeers
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
@dataclass
|
|
@@ -31,17 +34,26 @@ class Container:
|
|
|
31
34
|
token: JwtAdapter = field(default_factory=JwtAdapter)
|
|
32
35
|
|
|
33
36
|
def reconcile_cluster(self) -> ReconcileCluster:
|
|
34
|
-
return ReconcileCluster(helm=self.helm)
|
|
37
|
+
return ReconcileCluster(helm=self.helm, kubernetes=self.kubernetes, qdrant=self.qdrant)
|
|
35
38
|
|
|
36
39
|
def observe_cluster(self) -> ObserveCluster:
|
|
37
40
|
return ObserveCluster(kubernetes=self.kubernetes)
|
|
38
41
|
|
|
42
|
+
def recover_dead_peers(self) -> RecoverDeadPeers:
|
|
43
|
+
return RecoverDeadPeers(qdrant=self.qdrant, kubernetes=self.kubernetes)
|
|
44
|
+
|
|
45
|
+
def rebalance_shards(self) -> RebalanceShards:
|
|
46
|
+
return RebalanceShards(qdrant=self.qdrant, kubernetes=self.kubernetes)
|
|
47
|
+
|
|
39
48
|
def delete_cluster(self) -> DeleteCluster:
|
|
40
|
-
return DeleteCluster(helm=self.helm)
|
|
49
|
+
return DeleteCluster(helm=self.helm, kubernetes=self.kubernetes)
|
|
41
50
|
|
|
42
51
|
def execute_backup(self) -> ExecuteBackup:
|
|
43
52
|
return ExecuteBackup(qdrant=self.qdrant, storage=self.storage, kubernetes=self.kubernetes)
|
|
44
53
|
|
|
54
|
+
def cleanup_backup_snapshots(self) -> CleanupBackupSnapshots:
|
|
55
|
+
return CleanupBackupSnapshots(qdrant=self.qdrant, kubernetes=self.kubernetes)
|
|
56
|
+
|
|
45
57
|
def delete_backup_data(self) -> DeleteBackupData:
|
|
46
58
|
return DeleteBackupData(storage=self.storage, kubernetes=self.kubernetes)
|
|
47
59
|
|