(sandbox: &Sandbox)
| 110 | |
| 111 | impl KubernetesSandboxDriverConfig { |
| 112 | fn from_sandbox(sandbox: &Sandbox) -> Result<Self, String> { |
| 113 | let Some(template) = sandbox |
| 114 | .spec |
| 115 | .as_ref() |
| 116 | .and_then(|spec| spec.template.as_ref()) |
| 117 | else { |
| 118 | return Ok(Self::default()); |
| 119 | }; |
| 120 | |
| 121 | Self::from_template(template) |
| 122 | } |
| 123 | |
| 124 | fn from_template(template: &SandboxTemplate) -> Result<Self, String> { |
| 125 | let Some(config) = template.driver_config.as_ref() else { |
nothing calls this directly
no outgoing calls
no test coverage detected