@@ -34,9 +34,11 @@ allocation. When `warm_pooling.enabled` is true, the driver watches and caches
3434` openshell.ai/enabled=true ` , resolves each pool's referenced
3535` SandboxTemplate ` , and computes an in-memory fingerprint of the template spec.
3636
37- On create, the driver renders the Kubernetes spec that direct ` Sandbox `
38- creation would use, strips per-sandbox identity values from the fingerprint,
39- and matches it against the warm-pool cache for the target Kubernetes namespace.
37+ On create, the driver maps the OpenShell workspace to its target Kubernetes
38+ namespace, renders the spec that direct ` Sandbox ` creation would use, strips
39+ per-sandbox identity values from the fingerprint, and matches it against the
40+ warm-pool cache for that namespace. The current shared-namespace mapping sends
41+ every workspace to the configured Kubernetes namespace.
4042If exactly one pool matches, the driver creates a v1beta1 ` SandboxClaim ` with
4143` spec.warmPoolRef.name ` set to that pool. If no pool matches, multiple pools
4244match, RBAC prevents cache maintenance, or the v1beta1 extension APIs are
@@ -51,7 +53,8 @@ ConfigMaps when `warm_pooling.profiles.enabled` is true. Profiles live in the
5153configured profile namespace, use the ` warm-pool.toml ` data key, and expose a
5254narrow CLI-shaped schema: ` workspace ` , ` replicas ` , ` image ` ,
5355` runtime_class_name ` , ` [environment] ` , and ` [resources] ` with ` cpu ` , ` memory ` ,
54- and ` gpu_count ` . The reconciler generates ordinary ` SandboxTemplate ` and
56+ and ` gpu_count ` . The reconciler uses the same workspace-to-namespace mapping as
57+ sandbox creation and generates ordinary ` SandboxTemplate ` and
5558` SandboxWarmPool ` resources labelled ` openshell.ai/enabled=true ` ; the existing
5659matching cache then handles allocation unchanged.
5760
0 commit comments