Skip to content

Commit 575a447

Browse files
committed
fix(kubernetes): strip MAIN_PROCESS_SPEC from proxy-pod workloads
Main renamed the canonical-command transport from OPENSHELL_SANDBOX_COMMAND to the versioned OPENSHELL_MAIN_PROCESS_SPEC (#2726), which the supervisor decodes and launches. proxy-pod runs the sandbox image directly with no supervisor, so that env var is not only useless in the workload container but leaks the intended command into it. Strip MAIN_PROCESS_SPEC alongside the other supervisor-oriented variables, replacing the now-removed SANDBOX_COMMAND entry. Rebase adaptation: proxy-pod's workload command continues to flow through the containers.agent.command driver_config, since the canonical main process requires an in-sandbox supervisor this topology does not run. Signed-off-by: Russell Bryant <rbryant@redhat.com>
1 parent be8ca57 commit 575a447

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎crates/openshell-core/src/sandbox_env.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ pub const SSH_SOCKET_PATH: &str = "OPENSHELL_SSH_SOCKET_PATH";
2626
/// Log level for the sandbox supervisor (e.g. `"debug"`, `"info"`, `"warn"`).
2727
pub const LOG_LEVEL: &str = "OPENSHELL_LOG_LEVEL";
2828

29-
/// Shell command to run inside the sandbox.
30-
pub const SANDBOX_COMMAND: &str = "OPENSHELL_SANDBOX_COMMAND";
31-
3229
/// Versioned specification for the exact canonical main process.
3330
///
3431
/// Most drivers use JSON directly. Transports that cannot preserve spaces in

‎crates/openshell-driver-kubernetes/src/driver.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3741,7 +3741,7 @@ fn apply_supervisor_proxy_pod_topology(
37413741
openshell_core::sandbox_env::SANDBOX_ID,
37423742
openshell_core::sandbox_env::SANDBOX,
37433743
openshell_core::sandbox_env::ENDPOINT,
3744-
openshell_core::sandbox_env::SANDBOX_COMMAND,
3744+
openshell_core::sandbox_env::MAIN_PROCESS_SPEC,
37453745
openshell_core::sandbox_env::TELEMETRY_ENABLED,
37463746
openshell_core::sandbox_env::SSH_SOCKET_PATH,
37473747
openshell_core::sandbox_env::TLS_CA,

0 commit comments

Comments
 (0)