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.
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/PKG-INFO +1 -1
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/pyproject.toml +1 -1
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/pyproject.toml.orig +1 -1
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/kubernetes_adapter.py +2 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/qdrant_adapter.py +10 -7
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/LICENSE +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/README.md +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/__init__.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/container.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/domain.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/handlers.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/helm_adapter.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/jwt_adapter.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/main.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/ports.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/py.typed +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/s3_adapter.py +0 -0
- {qdrant_operator-0.3.0 → qdrant_operator-0.3.1}/src/qdrant_operator/usecases.py +0 -0
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|