ccluster-py 0.1.1.dev185__tar.gz → 0.1.1.dev187__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 (38) hide show
  1. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/PKG-INFO +1 -1
  2. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/pyproject.toml +1 -1
  3. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/pyproject.toml.orig +1 -1
  4. ccluster_py-0.1.1.dev187/src/ccluster/catalogs/cluster_base/external_secrets/__init__.py +81 -0
  5. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/cli.py +17 -14
  6. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/LICENSE +0 -0
  7. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/README.md +0 -0
  8. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/__init__.py +0 -0
  9. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/__init__.py +0 -0
  10. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/argo_rollouts/__init__.py +0 -0
  11. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/cert_manager/__init__.py +0 -0
  12. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/dynamo_platform/__init__.py +0 -0
  13. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/final_stack/__init__.py +0 -0
  14. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/fluent_bit/__init__.py +0 -0
  15. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/gpu_operator/__init__.py +0 -0
  16. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/ingress_nginx/__init__.py +0 -0
  17. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/istio/__init__.py +0 -0
  18. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/kai_scheduler/__init__.py +0 -0
  19. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/keda/__init__.py +0 -0
  20. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/kube_prometheus_stack/__init__.py +0 -0
  21. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/longhorn/__init__.py +0 -0
  22. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/metrics_server/__init__.py +0 -0
  23. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/network_operator/__init__.py +0 -0
  24. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/cluster_base/prometheus_adapter/__init__.py +0 -0
  25. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/deployments/compute_deployment/__init__.py +0 -0
  26. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/deployments/dynamo_deployment/__init__.py +0 -0
  27. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/deployments/inference_deployment/__init__.py +0 -0
  28. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/deployments/job_deployment/__init__.py +0 -0
  29. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/namespace_base/__init__.py +0 -0
  30. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/resources/kai_gpu_queues/__init__.py +0 -0
  31. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/catalogs/resources/persistent_volume/__init__.py +0 -0
  32. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/client.py +0 -0
  33. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/py.typed +0 -0
  34. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/v1alpha1/__init__.py +0 -0
  35. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/v1alpha1/base.py +0 -0
  36. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/v1alpha1/cclclusterconfig.py +0 -0
  37. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/src/ccluster/v1alpha1/cclcomponentset.py +0 -0
  38. {ccluster_py-0.1.1.dev185 → ccluster_py-0.1.1.dev187}/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.dev185
3
+ Version: 0.1.1.dev187
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
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "ccluster-py"
7
- version = "0.1.1.dev185"
7
+ version = "0.1.1.dev187"
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"
@@ -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.dev185"
12
+ version = "0.1.1.dev187"
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"
@@ -0,0 +1,81 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Code generated by `make python-generate`. DO NOT EDIT.
5
+
6
+ from __future__ import annotations
7
+
8
+ from typing import Annotated
9
+
10
+ from pydantic import BaseModel, ConfigDict, Field
11
+
12
+
13
+ class Replicas(BaseModel):
14
+ """
15
+ Replicas is a subchart's replica count.
16
+ """
17
+
18
+ model_config = ConfigDict(
19
+ extra="allow",
20
+ populate_by_name=True,
21
+ )
22
+ replica_count: Annotated[int | None, Field(alias="replicaCount")] = None
23
+
24
+
25
+ class Toggle(BaseModel):
26
+ """
27
+ Toggle is a subchart's enable flag.
28
+ """
29
+
30
+ model_config = ConfigDict(
31
+ extra="allow",
32
+ populate_by_name=True,
33
+ )
34
+ enabled: bool | None = None
35
+ """
36
+ Enabled turns the feature on.
37
+ """
38
+
39
+
40
+ class ChartValues(BaseModel):
41
+ """
42
+ ChartValues are the upstream external-secrets values worth setting per cluster.
43
+ """
44
+
45
+ model_config = ConfigDict(
46
+ extra="allow",
47
+ populate_by_name=True,
48
+ )
49
+ replica_count: Annotated[int | None, Field(alias="replicaCount")] = None
50
+ """
51
+ ReplicaCount is the controller replica count. The chart ships 2, with leader
52
+ election on.
53
+ """
54
+ webhook: Replicas | None = None
55
+ """
56
+ Webhook validates every ExternalSecret and SecretStore write. The chart ships 2
57
+ replicas.
58
+ """
59
+ service_monitor: Annotated[Toggle | None, Field(alias="serviceMonitor")] = None
60
+ """
61
+ ServiceMonitor is shipped off, because the ServiceMonitor CRD only exists once
62
+ kube-prometheus-stack is deployed. Enable it after that.
63
+ """
64
+
65
+
66
+ class Values(BaseModel):
67
+ """
68
+ Values of the catalogs/cluster_base/external_secrets chart, generated from its Go package.
69
+ """
70
+
71
+ model_config = ConfigDict(
72
+ extra="allow",
73
+ populate_by_name=True,
74
+ )
75
+ external_secrets: Annotated[ChartValues | None, Field(alias="external-secrets")] = (
76
+ None
77
+ )
78
+
79
+
80
+ # CHART is the chart directory, relative to the root of the catalog repository.
81
+ CHART = "catalogs/cluster_base/external_secrets"
@@ -91,17 +91,11 @@ def init(control_plane: str) -> None:
91
91
  replaces the saved control plane. Only the context name is saved; credentials stay in
92
92
  the kubeconfig.
93
93
  """
94
- with _kube_errors():
94
+ with _kube_errors(control_plane):
95
95
  api_client = k8s_config.new_client_from_config(context=control_plane)
96
- try:
97
- DynamicClient(api_client).resources.get(
98
- api_version=API_VERSION, kind=Kind.CCL_INFRA_PLANE.value
99
- )
100
- except ResourceNotFoundError as e:
101
- raise click.ClickException(
102
- f"Control plane {control_plane} does not serve {Kind.CCL_INFRA_PLANE.value}; "
103
- "is the ccluster-cp operator installed?"
104
- ) from e
96
+ DynamicClient(api_client).resources.get(
97
+ api_version=API_VERSION, kind=Kind.CCL_INFRA_PLANE.value
98
+ )
105
99
  path = _save_control_plane(control_plane)
106
100
  click.echo(f"Initialized ccluster with control plane {control_plane} (saved to {path})")
107
101
 
@@ -154,7 +148,7 @@ def register(
154
148
  for example a kind cluster, whose kubeconfig points at 127.0.0.1.
155
149
  """
156
150
  control_plane = _load_control_plane()
157
- with _kube_errors():
151
+ with _kube_errors(control_plane):
158
152
  infra_api = k8s_config.new_client_from_config(context=infra_plane)
159
153
  control_api = k8s_config.new_client_from_config(context=control_plane)
160
154
 
@@ -201,7 +195,7 @@ def unregister(name: str, namespace: str) -> None:
201
195
  the token.
202
196
  """
203
197
  control_plane = _load_control_plane()
204
- with _kube_errors():
198
+ with _kube_errors(control_plane):
205
199
  control_api = k8s_config.new_client_from_config(context=control_plane)
206
200
  CCLClient(namespace, api_client=control_api).delete_infraplane(name=name)
207
201
  click.echo(f"Unregistered CCLInfraPlane {namespace}/{name}")
@@ -240,10 +234,19 @@ def _save_control_plane(context: str) -> Path:
240
234
 
241
235
 
242
236
  @contextlib.contextmanager
243
- def _kube_errors() -> Iterator[None]:
244
- """Turn Kubernetes configuration, API and connection errors into one-line Click errors."""
237
+ def _kube_errors(control_plane: str) -> Iterator[None]:
238
+ """Turn Kubernetes configuration, API and connection errors into one-line Click errors.
239
+
240
+ A ResourceNotFoundError comes from API discovery on the control plane, which does not
241
+ serve a ccluster kind when the ccluster-cp operator's CRDs are missing.
242
+ """
245
243
  try:
246
244
  yield
245
+ except ResourceNotFoundError as e:
246
+ raise click.ClickException(
247
+ f"Control plane {control_plane} does not serve the ccluster API; "
248
+ "is the ccluster-cp operator installed?"
249
+ ) from e
247
250
  except k8s_config.ConfigException as e:
248
251
  raise click.ClickException(f"Kubeconfig could not be loaded: {e}") from e
249
252
  except k8s.ApiException as e: