mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
refactor(proto): move phase and current_policy_version into status (#1565)
* refactor(proto): move phase and current_policy_version into SandboxStatus Move phase and current_policy_version from SandboxSpec into SandboxStatus to correctly model mutable runtime state. Update all callers in the gateway server, TUI, and Python SDK to read and write these fields through SandboxStatus accessors. Signed-off-by: Derek Carr <decarr@redhat.com> * fix(server): preserve sandbox status on statusless driver updates When a driver update arrives without a status payload (e.g. before Kubernetes populates the status subresource), preserve the stored phase, conditions, and current policy version instead of resetting them. Adds a regression test covering the edge case. Signed-off-by: Derek Carr <decarr@redhat.com> --------- Signed-off-by: Derek Carr <decarr@redhat.com>
This commit is contained in:
@@ -15,6 +15,7 @@ from .sandbox import (
|
||||
SandboxError,
|
||||
SandboxRef,
|
||||
SandboxSession,
|
||||
SandboxStatusRef,
|
||||
TlsConfig,
|
||||
)
|
||||
|
||||
@@ -35,6 +36,7 @@ __all__ = [
|
||||
"SandboxError",
|
||||
"SandboxRef",
|
||||
"SandboxSession",
|
||||
"SandboxStatusRef",
|
||||
"TlsConfig",
|
||||
"__version__",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user