qdrant-operator 0.3.0__tar.gz → 0.3.1__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.
Files changed (18) hide show
  1. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/PKG-INFO +1 -1
  2. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/pyproject.toml +1 -1
  3. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/pyproject.toml.orig +1 -1
  4. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/kubernetes_adapter.py +2 -0
  5. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/qdrant_adapter.py +10 -7
  6. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/LICENSE +0 -0
  7. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/README.md +0 -0
  8. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/__init__.py +0 -0
  9. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/container.py +0 -0
  10. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/domain.py +0 -0
  11. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/handlers.py +0 -0
  12. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/helm_adapter.py +0 -0
  13. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/jwt_adapter.py +0 -0
  14. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/main.py +0 -0
  15. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/ports.py +0 -0
  16. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/py.typed +0 -0
  17. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/s3_adapter.py +0 -0
  18. {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/usecases.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qdrant-operator
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Kubernetes operator for Qdrant vector database
5
5
  Keywords: kubernetes,operator,qdrant,kopf,vector-database
6
6
  Author: Mohamed Tahrioui
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qdrant-operator"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Kubernetes operator for Qdrant vector database"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qdrant-operator"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Kubernetes operator for Qdrant vector database"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -20,6 +20,7 @@ from qdrant_operator.domain import SecretRef
20
20
  from qdrant_operator.domain import StatefulSetStatus
21
21
 
22
22
  config: Any = kubernetes_config
23
+ MERGE_PATCH = "application/merge-patch+json"
23
24
 
24
25
 
25
26
  async def load_kubernetes_config() -> None:
@@ -161,6 +162,7 @@ class KubernetesAdapter:
161
162
  plural=ref.kind.plural,
162
163
  name=ref.name,
163
164
  body={"status": status},
165
+ _content_type=MERGE_PATCH,
164
166
  )
165
167
 
166
168
  async def get_statefulset_status(self, name: str, namespace: str) -> StatefulSetStatus | None:
@@ -25,13 +25,16 @@ class QdrantAdapter:
25
25
 
26
26
  @asynccontextmanager
27
27
  async def client(self, node: QdrantNode, timeout: float) -> AsyncGenerator[httpx.AsyncClient]:
28
- async with httpx.AsyncClient(
29
- base_url=node.url,
30
- headers={"api-key": node.api_key} if node.api_key else {},
31
- timeout=timeout,
32
- verify=self.ssl_context(node),
33
- ) as client:
34
- yield client
28
+ try:
29
+ async with httpx.AsyncClient(
30
+ base_url=node.url,
31
+ headers={"api-key": node.api_key} if node.api_key else {},
32
+ timeout=timeout,
33
+ verify=self.ssl_context(node),
34
+ ) as client:
35
+ yield client
36
+ except httpx.TransportError as error:
37
+ raise ConnectionError(f"Qdrant at {node.url} is unreachable: {error}") from error
35
38
 
36
39
  @staticmethod
37
40
  def ssl_context(node: QdrantNode) -> ssl.SSLContext | bool:
File without changes