Skip to content

Commit deefa2a

Browse files
committed
feat(isolation): define capability-free launch contract
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 50d89d5 commit deefa2a

9 files changed

Lines changed: 427 additions & 121 deletions

File tree

‎crates/openshell-driver-docker/src/lib.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,6 +2134,7 @@ fn pending_sandbox_snapshot(
21342134
sandbox_fd: String::new(),
21352135
conditions: vec![condition],
21362136
deleting,
2137+
..Default::default()
21372138
}),
21382139
workspace: sandbox.workspace.clone(),
21392140
}
@@ -3468,6 +3469,7 @@ fn driver_status_from_summary(
34683469
last_transition_time: String::new(),
34693470
}],
34703471
deleting,
3472+
..Default::default()
34713473
}
34723474
}
34733475

‎crates/openshell-driver-docker/src/tests.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ fn test_sandbox() -> DriverSandbox {
4949
command: Vec::new(),
5050
tty: false,
5151
await_main_process_attachment: false,
52+
workload_identity: None,
5253
}),
5354
status: None,
5455
workspace: String::new(),
@@ -3262,6 +3263,7 @@ fn exited_sandbox_with_ready_reason(reason: &str) -> DriverSandbox {
32623263
last_transition_time: String::new(),
32633264
}],
32643265
deleting: false,
3266+
..Default::default()
32653267
}),
32663268
workspace: String::new(),
32673269
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4546,6 +4546,7 @@ fn status_from_object(obj: &DynamicObject) -> Option<SandboxStatus> {
45464546
.to_string(),
45474547
conditions,
45484548
deleting: obj.metadata.deletion_timestamp.is_some(),
4549+
..Default::default()
45494550
})
45504551
}
45514552

‎crates/openshell-driver-podman/src/watcher.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ fn build_driver_sandbox(
352352
sandbox_fd: String::new(),
353353
conditions: vec![condition],
354354
deleting,
355+
..Default::default()
355356
}),
356357
workspace,
357358
}
@@ -694,6 +695,7 @@ mod tests {
694695
sandbox_fd: String::new(),
695696
conditions: vec![condition],
696697
deleting: false,
698+
..Default::default()
697699
}),
698700
workspace: String::new(),
699701
};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5970,6 +5970,7 @@ fn sandbox_snapshot(sandbox: &Sandbox, condition: SandboxCondition, deleting: bo
59705970
sandbox_fd: String::new(),
59715971
conditions: vec![condition],
59725972
deleting,
5973+
..Default::default()
59735974
}),
59745975
..Default::default()
59755976
}
@@ -5987,6 +5988,7 @@ fn status_with_condition(
59875988
sandbox_fd: String::new(),
59885989
conditions: vec![condition],
59895990
deleting,
5991+
..Default::default()
59905992
}
59915993
}
59925994

0 commit comments

Comments
 (0)