execution-plane-client 0.1.14__tar.gz → 0.1.16__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.
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/PKG-INFO +1 -1
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/_version.py +2 -2
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/catalog.py +1 -2
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/clusters.py +0 -6
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/control.py +13 -2
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/models/execution_target.py +1 -1
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/.gitignore +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/LICENSE +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/README.md +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/__init__.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/__init__.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/base.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/credentials.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/results.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/targets.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/commands/work.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/errors.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/handlers.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/models/__init__.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/models/cluster.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/models/shared.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/models/work_item.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/protocol.py +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/py.typed +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/pyproject.toml +0 -0
- {execution_plane_client-0.1.14 → execution_plane_client-0.1.16}/registry.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.16'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 16)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
|
|
5
5
|
from execution_plane_client.commands.base import CommandPayload
|
|
6
|
-
from execution_plane_client.commands.clusters import ClusterDelete,
|
|
6
|
+
from execution_plane_client.commands.clusters import ClusterDelete, ClusterRegister, ClusterUpdate
|
|
7
7
|
from execution_plane_client.commands.control import CancelCommand, Completion
|
|
8
8
|
from execution_plane_client.commands.credentials import CredentialResolve
|
|
9
9
|
from execution_plane_client.commands.targets import TargetDelete, TargetHealth, TargetRegister, TargetUpdate
|
|
@@ -31,7 +31,6 @@ class CommandCatalog:
|
|
|
31
31
|
Completion,
|
|
32
32
|
CredentialResolve,
|
|
33
33
|
ClusterRegister,
|
|
34
|
-
ClusterProvision,
|
|
35
34
|
ClusterUpdate,
|
|
36
35
|
ClusterDelete,
|
|
37
36
|
TargetRegister,
|
|
@@ -61,12 +61,6 @@ class ClusterRegister(ClusterConfigBase, ResourceIdentity, CommandPayload):
|
|
|
61
61
|
return self
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
class ClusterProvision(ClusterRegister):
|
|
65
|
-
"""Provision through the same cluster and default-target reconciler."""
|
|
66
|
-
|
|
67
|
-
command_type: ClassVar[str] = "cluster.provision"
|
|
68
|
-
|
|
69
|
-
|
|
70
64
|
class ClusterDelete(ResourceIdentity, CommandPayload):
|
|
71
65
|
"""Disable and drain an existing cluster addressed by id."""
|
|
72
66
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"""Cancellation requests and work completion commands."""
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from enum import StrEnum
|
|
4
|
+
from typing import ClassVar
|
|
4
5
|
from uuid import UUID
|
|
5
6
|
|
|
6
7
|
from pydantic import Field, field_validator
|
|
7
8
|
|
|
8
9
|
from execution_plane_client.commands.base import CommandPayload
|
|
10
|
+
from execution_plane_client.models.work_item import WorkItemStatus
|
|
9
11
|
from execution_plane_client.protocol import ResourceReference, validate_json
|
|
10
12
|
|
|
11
13
|
|
|
@@ -17,13 +19,22 @@ class CancelCommand(CommandPayload):
|
|
|
17
19
|
target_command_id: UUID
|
|
18
20
|
|
|
19
21
|
|
|
22
|
+
class CompletionStatus(StrEnum):
|
|
23
|
+
"""Work-item states that can be reported by a completion command."""
|
|
24
|
+
|
|
25
|
+
COMPLETED = WorkItemStatus.COMPLETED.value
|
|
26
|
+
FAILED = WorkItemStatus.FAILED.value
|
|
27
|
+
CANCELLED = WorkItemStatus.CANCELLED.value
|
|
28
|
+
RECONCILIATION_REQUIRED = WorkItemStatus.RECONCILIATION_REQUIRED.value
|
|
29
|
+
|
|
30
|
+
|
|
20
31
|
class Completion(CommandPayload):
|
|
21
32
|
"""Terminal or uncertain work outcome delivered to the initiating client."""
|
|
22
33
|
|
|
23
34
|
command_type: ClassVar[str] = "work.execute.completed"
|
|
24
35
|
requires_parent: ClassVar[bool] = True
|
|
25
36
|
|
|
26
|
-
status:
|
|
37
|
+
status: CompletionStatus
|
|
27
38
|
result: dict[str, object] = Field(default_factory=dict, repr=False)
|
|
28
39
|
resource: ResourceReference | None = None
|
|
29
40
|
error_code: str | None = None
|
|
@@ -190,7 +190,7 @@ class KubernetesTargetPlacement(CommandKubernetesPlacement):
|
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
class ExecutionTargetCreate(BaseModel):
|
|
193
|
-
"""A Kubernetes target on the single cluster
|
|
193
|
+
"""A Kubernetes target on the single cluster registered at installation."""
|
|
194
194
|
|
|
195
195
|
model_config = ConfigDict(extra="forbid")
|
|
196
196
|
|
|
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
|