ccluster-py 0.0.10.dev160__tar.gz → 0.0.10.dev161__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 (36) hide show
  1. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/PKG-INFO +10 -6
  2. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/README.md +9 -5
  3. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/pyproject.toml +1 -1
  4. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/pyproject.toml.orig +1 -1
  5. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/client.py +6 -5
  6. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/v1alpha1/cclcomponentset.py +28 -5
  7. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/LICENSE +0 -0
  8. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/__init__.py +0 -0
  9. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/__init__.py +0 -0
  10. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/argo_rollouts/__init__.py +0 -0
  11. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/cert_manager/__init__.py +0 -0
  12. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/final_stack/__init__.py +0 -0
  13. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/fluent_bit/__init__.py +0 -0
  14. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/gpu_operator/__init__.py +0 -0
  15. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/ingress_nginx/__init__.py +0 -0
  16. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/istio/__init__.py +0 -0
  17. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/kai_scheduler/__init__.py +0 -0
  18. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/keda/__init__.py +0 -0
  19. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/kube_prometheus_stack/__init__.py +0 -0
  20. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/longhorn/__init__.py +0 -0
  21. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/metrics_server/__init__.py +0 -0
  22. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/network_operator/__init__.py +0 -0
  23. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/cluster_base/prometheus_adapter/__init__.py +0 -0
  24. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/deployments/compute_deployment/__init__.py +0 -0
  25. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/deployments/dynamo_deployment/__init__.py +0 -0
  26. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/deployments/inference_deployment/__init__.py +0 -0
  27. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/deployments/job_deployment/__init__.py +0 -0
  28. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/namespace_base/__init__.py +0 -0
  29. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/resources/kai_gpu_queues/__init__.py +0 -0
  30. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/catalogs/resources/persistent_volume/__init__.py +0 -0
  31. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/cli.py +0 -0
  32. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/py.typed +0 -0
  33. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/v1alpha1/__init__.py +0 -0
  34. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/v1alpha1/base.py +0 -0
  35. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/src/ccluster/v1alpha1/cclclusterconfig.py +0 -0
  36. {ccluster_py-0.0.10.dev160 → ccluster_py-0.0.10.dev161}/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.0.10.dev160
3
+ Version: 0.0.10.dev161
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
@@ -197,15 +197,19 @@ A type is absent when the operator did not get far enough to write it: a set who
197
197
  validation failed has no `ComponentsApplied` condition for this generation.
198
198
 
199
199
  `Progressing=False` means every Application matches the operator's current desired spec,
200
- Argo CD's latest comparison was of that spec and reports `Healthy` and `Synced`, and no
201
- operation for it is pending, running or failed.
200
+ Argo CD's latest comparison was of that spec and reports `Synced`, no operation for it is
201
+ pending, running or failed, every component is `Healthy` or `Succeeded`, and no
202
+ Application of a component removed from the spec is left.
202
203
  While rollout continues, the reason is `WaveSyncing`, or `WaveSyncFailed` when the last
203
204
  sync of a component's current spec failed. The operator does not retry a failed sync; a
204
205
  later successful sync of that Application in Argo CD clears `WaveSyncFailed` and resumes
205
206
  the rollout. When validation failed and the component being waited on needs the operator
206
- to write its Application, the reason is the `Validated` condition's, such as
207
- `InfraPlaneNotFound`: the operator writes nothing until validation passes.
208
- Updates to already released components are not serialized by wave.
207
+ to write or delete its Application, the reason is the `Validated` condition's, such as
208
+ `InfraPlaneNotFound`: the operator writes and deletes nothing until validation passes.
209
+ Updates follow list order like the first rollout: a component's new spec is written only
210
+ after every component before it has finished on its own current spec. The Applications of
211
+ components removed from the spec are deleted last, after every remaining component has
212
+ finished, one at a time in reverse order; the reason is `ComponentRemoving` meanwhile.
209
213
 
210
214
  `delete_component_set` returns as soon as the delete is accepted. The operator's finalizer
211
215
  then uninstalls the set's charts in reverse order, one at a time, so the object stays in
@@ -175,15 +175,19 @@ A type is absent when the operator did not get far enough to write it: a set who
175
175
  validation failed has no `ComponentsApplied` condition for this generation.
176
176
 
177
177
  `Progressing=False` means every Application matches the operator's current desired spec,
178
- Argo CD's latest comparison was of that spec and reports `Healthy` and `Synced`, and no
179
- operation for it is pending, running or failed.
178
+ Argo CD's latest comparison was of that spec and reports `Synced`, no operation for it is
179
+ pending, running or failed, every component is `Healthy` or `Succeeded`, and no
180
+ Application of a component removed from the spec is left.
180
181
  While rollout continues, the reason is `WaveSyncing`, or `WaveSyncFailed` when the last
181
182
  sync of a component's current spec failed. The operator does not retry a failed sync; a
182
183
  later successful sync of that Application in Argo CD clears `WaveSyncFailed` and resumes
183
184
  the rollout. When validation failed and the component being waited on needs the operator
184
- to write its Application, the reason is the `Validated` condition's, such as
185
- `InfraPlaneNotFound`: the operator writes nothing until validation passes.
186
- Updates to already released components are not serialized by wave.
185
+ to write or delete its Application, the reason is the `Validated` condition's, such as
186
+ `InfraPlaneNotFound`: the operator writes and deletes nothing until validation passes.
187
+ Updates follow list order like the first rollout: a component's new spec is written only
188
+ after every component before it has finished on its own current spec. The Applications of
189
+ components removed from the spec are deleted last, after every remaining component has
190
+ finished, one at a time in reverse order; the reason is `ComponentRemoving` meanwhile.
187
191
 
188
192
  `delete_component_set` returns as soon as the delete is accepted. The operator's finalizer
189
193
  then uninstalls the set's charts in reverse order, one at a time, so the object stays in
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "ccluster-py"
7
- version = "0.0.10.dev160"
7
+ version = "0.0.10.dev161"
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.0.10.dev160"
12
+ version = "0.0.10.dev161"
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"
@@ -299,11 +299,12 @@ class CCLClient:
299
299
  The caller controls polling and timeouts.
300
300
  Raises kubernetes.dynamic.exceptions.NotFoundError if the set does not exist.
301
301
 
302
- True means every Application matches current desired input and, for tracked
303
- requests, its sync succeeded before a later Healthy/Synced comparison.
304
- The timestamp check is a freshness barrier, not an atomic configuration-version
305
- acknowledgement. Existing Applications enter request tracking on a spec change;
306
- updates across already released components are not yet serialized by wave.
302
+ True means every Application has the operator's current spec, Argo CD's latest
303
+ comparison was of that spec and reports Synced, no operation for it is pending,
304
+ running or failed, every component is Healthy or Succeeded, and no Application of
305
+ a component removed from the spec is left. Updates follow list order, so after an
306
+ edit this stays False until the last changed component has finished and the
307
+ removed components' Applications are gone.
307
308
  """
308
309
  component_set = self.get_component_set(name=name)
309
310
 
@@ -135,7 +135,7 @@ class ComponentHealthStatus(BaseModel):
135
135
  """
136
136
  name: str
137
137
  """
138
- name identifies the component in spec.components.
138
+ name identifies the component in spec.components, or a component removed from it.
139
139
  """
140
140
  reason: str | None = None
141
141
  """
@@ -144,6 +144,17 @@ class ComponentHealthStatus(BaseModel):
144
144
  """
145
145
 
146
146
 
147
+ class Removal(Enum):
148
+ """
149
+ removal is set for a component no longer in spec.components whose Application is
150
+ still there: DeletePending until the operator deletes the Application, Deleting
151
+ while Argo CD uninstalls its chart.
152
+ """
153
+
154
+ delete_pending = "DeletePending"
155
+ deleting = "Deleting"
156
+
157
+
147
158
  class ComponentSyncStatus(BaseModel):
148
159
  """
149
160
  ComponentSyncStatus reports the latest observed Application state.
@@ -157,7 +168,8 @@ class ComponentSyncStatus(BaseModel):
157
168
  """
158
169
  comparedToMatchesSpec reports whether Argo CD's latest comparison used the
159
170
  desired source, destination and ignoreDifferences. While false, sync does not
160
- establish convergence on the desired configuration.
171
+ establish convergence on the desired configuration. Always false for a removed
172
+ component, which has no desired configuration.
161
173
  """
162
174
  message: str | None = None
163
175
  """
@@ -165,7 +177,14 @@ class ComponentSyncStatus(BaseModel):
165
177
  """
166
178
  name: str
167
179
  """
168
- name identifies the component in spec.components.
180
+ name identifies the component in spec.components, or, with removal set, a
181
+ component removed from it.
182
+ """
183
+ removal: Removal | None = None
184
+ """
185
+ removal is set for a component no longer in spec.components whose Application is
186
+ still there: DeletePending until the operator deletes the Application, Deleting
187
+ while Argo CD uninstalls its chart.
169
188
  """
170
189
  sync: str | None = None
171
190
  """
@@ -254,7 +273,9 @@ class CCLComponentSetStatus(BaseModel):
254
273
  """
255
274
  componentHealthStatuses reports the health of each released component's live
256
275
  objects, as its chart judges it from what Argo CD reports, such as a Job that
257
- succeeded or a Pod in CrashLoopBackOff.
276
+ succeeded or a Pod in CrashLoopBackOff. A component removed from the spec stays
277
+ listed until its Application is gone, judged by the default health function, as
278
+ componentSyncStatuses lists it.
258
279
 
259
280
  It describes the objects running now, whichever spec they were rendered from.
260
281
  Whether they are the current spec's is the same component's entry in
@@ -267,7 +288,9 @@ class CCLComponentSetStatus(BaseModel):
267
288
  ] = None
268
289
  """
269
290
  componentSyncStatuses reports the latest observed Application state for each
270
- released component, judged against the spec at status.observedGeneration.
291
+ released component, judged against the spec at status.observedGeneration. A
292
+ component removed from that spec stays listed, with removal set, until its
293
+ Application is gone.
271
294
  """
272
295
  conditions: list[Condition] | None = None
273
296
  """