()
| 278 | |
| 279 | impl Default for KubernetesComputeConfig { |
| 280 | fn default() -> Self { |
| 281 | Self { |
| 282 | namespace: DEFAULT_K8S_NAMESPACE.to_string(), |
| 283 | service_account_name: DEFAULT_SANDBOX_SERVICE_ACCOUNT_NAME.to_string(), |
| 284 | default_image: openshell_core::image::default_sandbox_image(), |
| 285 | // Default empty so the gateway omits `imagePullPolicy` from pod |
| 286 | // specs and Kubernetes applies its own default (Always for `latest`, |
| 287 | // IfNotPresent otherwise). `DEFAULT_IMAGE_PULL_POLICY` ("missing") |
| 288 | // is Podman vocabulary and is not a valid Kubernetes value. |
| 289 | image_pull_policy: String::new(), |
| 290 | image_pull_secrets: Vec::new(), |
| 291 | supervisor_image: DEFAULT_SUPERVISOR_IMAGE.to_string(), |
| 292 | supervisor_image_pull_policy: String::new(), |
| 293 | supervisor_sideload_method: SupervisorSideloadMethod::default(), |
| 294 | supervisor_topology: SupervisorTopology::default(), |
| 295 | grpc_endpoint: String::new(), |
| 296 | ssh_socket_path: "/run/openshell/ssh.sock".to_string(), |
| 297 | client_tls_secret_name: String::new(), |
| 298 | host_gateway_ip: String::new(), |
| 299 | enable_user_namespaces: false, |
| 300 | app_armor_profile: None, |
| 301 | workspace_default_storage_size: DEFAULT_WORKSPACE_STORAGE_SIZE.to_string(), |
| 302 | default_runtime_class_name: String::new(), |
| 303 | sa_token_ttl_secs: 3600, |
| 304 | provider_spiffe_workload_api_socket_path: String::new(), |
| 305 | sandbox_uid: None, |
| 306 | sandbox_gid: None, |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | impl KubernetesComputeConfig { |
nothing calls this directly
no test coverage detected