ccluster-py 0.1.1.dev180__tar.gz → 0.1.1.dev182__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.
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/PKG-INFO +2 -1
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/pyproject.toml +2 -1
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/pyproject.toml.orig +2 -1
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/cli.py +15 -1
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/LICENSE +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/README.md +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/argo_rollouts/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/cert_manager/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/dynamo_platform/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/final_stack/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/fluent_bit/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/gpu_operator/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/ingress_nginx/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/istio/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/kai_scheduler/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/keda/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/kube_prometheus_stack/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/longhorn/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/metrics_server/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/network_operator/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/cluster_base/prometheus_adapter/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/deployments/compute_deployment/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/deployments/dynamo_deployment/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/deployments/inference_deployment/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/deployments/job_deployment/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/namespace_base/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/resources/kai_gpu_queues/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/catalogs/resources/persistent_volume/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/client.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/py.typed +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/__init__.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/base.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclclusterconfig.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclcomponentset.py +0 -0
- {ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclinfraplane.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ccluster-py
|
|
3
|
-
Version: 0.1.1.
|
|
3
|
+
Version: 0.1.1.dev182
|
|
4
4
|
Summary: Pydantic models and a client for the ccluster.nvidia.com API and its Helm chart catalog
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -14,6 +14,7 @@ Requires-Dist: click>=8.1
|
|
|
14
14
|
Requires-Dist: kubernetes>=30
|
|
15
15
|
Requires-Dist: pydantic>=2.11
|
|
16
16
|
Requires-Dist: pyyaml>=6
|
|
17
|
+
Requires-Dist: urllib3
|
|
17
18
|
Requires-Python: >=3.10
|
|
18
19
|
Project-URL: Homepage, https://github.com/NVIDIA/ccluster
|
|
19
20
|
Project-URL: Source, https://github.com/NVIDIA/ccluster/tree/main/python
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ccluster-py"
|
|
7
|
-
version = "0.1.1.
|
|
7
|
+
version = "0.1.1.dev182"
|
|
8
8
|
description = "Pydantic models and a client for the ccluster.nvidia.com API and its Helm chart catalog"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -15,6 +15,7 @@ dependencies = [
|
|
|
15
15
|
"kubernetes>=30",
|
|
16
16
|
"pydantic>=2.11",
|
|
17
17
|
"pyyaml>=6",
|
|
18
|
+
"urllib3",
|
|
18
19
|
]
|
|
19
20
|
classifiers = [
|
|
20
21
|
"Development Status :: 3 - Alpha",
|
|
@@ -9,7 +9,7 @@ build-backend = "uv_build"
|
|
|
9
9
|
# `ccluster` (src/ccluster).
|
|
10
10
|
name = "ccluster-py"
|
|
11
11
|
# Placeholder: the release version is the git tag, stamped in by `make python-build`.
|
|
12
|
-
version = "0.1.1.
|
|
12
|
+
version = "0.1.1.dev182"
|
|
13
13
|
description = "Pydantic models and a client for the ccluster.nvidia.com API and its Helm chart catalog"
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
license = "Apache-2.0"
|
|
@@ -22,6 +22,7 @@ dependencies = [
|
|
|
22
22
|
"kubernetes>=30",
|
|
23
23
|
"pydantic>=2.11",
|
|
24
24
|
"pyyaml>=6",
|
|
25
|
+
"urllib3",
|
|
25
26
|
]
|
|
26
27
|
classifiers = [
|
|
27
28
|
"Development Status :: 3 - Alpha",
|
|
@@ -30,6 +30,8 @@ from kubernetes import client as k8s
|
|
|
30
30
|
from kubernetes import config as k8s_config
|
|
31
31
|
from kubernetes.dynamic import DynamicClient
|
|
32
32
|
from kubernetes.dynamic.exceptions import ResourceNotFoundError
|
|
33
|
+
from urllib3.exceptions import MaxRetryError
|
|
34
|
+
from urllib3.util import Url
|
|
33
35
|
|
|
34
36
|
from ccluster.client import CCLClient
|
|
35
37
|
from ccluster.v1alpha1 import API_VERSION, CCLInfraPlane, Kind
|
|
@@ -239,13 +241,25 @@ def _save_control_plane(context: str) -> Path:
|
|
|
239
241
|
|
|
240
242
|
@contextlib.contextmanager
|
|
241
243
|
def _kube_errors() -> Iterator[None]:
|
|
242
|
-
"""Turn
|
|
244
|
+
"""Turn Kubernetes configuration, API and connection errors into one-line Click errors."""
|
|
243
245
|
try:
|
|
244
246
|
yield
|
|
245
247
|
except k8s_config.ConfigException as e:
|
|
246
248
|
raise click.ClickException(f"Kubeconfig could not be loaded: {e}") from e
|
|
247
249
|
except k8s.ApiException as e:
|
|
248
250
|
raise click.ClickException(_api_error(e)) from e
|
|
251
|
+
except MaxRetryError as e:
|
|
252
|
+
message = "Kubernetes API request failed"
|
|
253
|
+
if e.pool is not None:
|
|
254
|
+
host = e.pool.host
|
|
255
|
+
if ":" in host:
|
|
256
|
+
host = f"[{host}]"
|
|
257
|
+
server = Url(scheme=e.pool.scheme, host=host, port=e.pool.port)
|
|
258
|
+
message += f" at {server.url}"
|
|
259
|
+
if e.reason is not None:
|
|
260
|
+
reason = " ".join(str(e.reason).splitlines())
|
|
261
|
+
message += f": {reason}"
|
|
262
|
+
raise click.ClickException(message) from e
|
|
249
263
|
|
|
250
264
|
|
|
251
265
|
def _cluster_admin_token(api_client: k8s.ApiClient) -> tuple[str, bytes]:
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclclusterconfig.py
RENAMED
|
File without changes
|
{ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclcomponentset.py
RENAMED
|
File without changes
|
{ccluster_py-0.1.1.dev180 → ccluster_py-0.1.1.dev182}/src/ccluster/v1alpha1/cclinfraplane.py
RENAMED
|
File without changes
|