@@ -139,6 +139,8 @@ pub struct GatewayFileSection {
139139 #[ serde( default ) ]
140140 pub default_image : Option < String > ,
141141 #[ serde( default ) ]
142+ pub sandbox_runtime_image : Option < String > ,
143+ #[ serde( default ) ]
142144 pub supervisor_image : Option < String > ,
143145 #[ serde( default ) ]
144146 pub client_tls_secret_name : Option < String > ,
@@ -462,6 +464,7 @@ fn gateway_inherited_value(g: &GatewayFileSection, key: &str) -> Option<toml::Va
462464 match key {
463465 "namespace" | "sandbox_namespace" => g. sandbox_namespace . as_deref ( ) . map ( string_value) ,
464466 "default_image" => g. default_image . as_deref ( ) . map ( string_value) ,
467+ "sandbox_runtime_image" => g. sandbox_runtime_image . as_deref ( ) . map ( string_value) ,
465468 "supervisor_image" => g. supervisor_image . as_deref ( ) . map ( string_value) ,
466469 "client_tls_secret_name" => g. client_tls_secret_name . as_deref ( ) . map ( string_value) ,
467470 "service_account_name" => g. service_account_name . as_deref ( ) . map ( string_value) ,
@@ -523,6 +526,7 @@ grpc_rate_limit_requests = 120
523526grpc_rate_limit_window_seconds = 60
524527policy_validation_failure_mode = "retain_last_valid"
525528default_image = "ghcr.io/nvidia/openshell-community/sandboxes/base:latest"
529+ sandbox_runtime_image = "ghcr.io/nvidia/openshell/sandbox:latest"
526530supervisor_image = "ghcr.io/nvidia/openshell/supervisor:latest"
527531client_tls_secret_name = "openshell-sandbox-tls"
528532service_account_name = "openshell-sandbox"
@@ -946,6 +950,7 @@ version = 2
946950 default_image : Some (
947951 "ghcr.io/nvidia/openshell-community/sandboxes/base:latest" . to_string ( ) ,
948952 ) ,
953+ sandbox_runtime_image : Some ( "ghcr.io/nvidia/openshell/sandbox:0.9" . to_string ( ) ) ,
949954 supervisor_image : Some ( "ghcr.io/nvidia/openshell/supervisor:0.9" . to_string ( ) ) ,
950955 ..Default :: default ( )
951956 } ;
@@ -956,7 +961,7 @@ version = 2
956961 "alpha" ,
957962 & gateway,
958963 Some ( & toml:: Value :: Table ( raw) ) ,
959- & [ "default_image" , "supervisor_image" ] ,
964+ & [ "default_image" , "sandbox_runtime_image" , " supervisor_image"] ,
960965 ) ;
961966 let table = merged. as_table ( ) . expect ( "table" ) ;
962967 assert_eq ! (
@@ -967,6 +972,10 @@ version = 2
967972 table. get( "default_image" ) . and_then( |v| v. as_str( ) ) ,
968973 Some ( "ghcr.io/nvidia/openshell-community/sandboxes/base:latest" )
969974 ) ;
975+ assert_eq ! (
976+ table. get( "sandbox_runtime_image" ) . and_then( |v| v. as_str( ) ) ,
977+ Some ( "ghcr.io/nvidia/openshell/sandbox:0.9" )
978+ ) ;
970979 assert_eq ! (
971980 table. get( "supervisor_image" ) . and_then( |v| v. as_str( ) ) ,
972981 Some ( "ghcr.io/nvidia/openshell/supervisor:0.9" )
0 commit comments