What would you like to be added:
- enable E2B sandbox api to accept an extra metadata, e.g.
e2b.agents.kruise.io/cpu-scale-factor: 2
- sandbox manager try to scale the cpu of the allocated sandbox based on the cpu-scale-factor
- [optional] return the sandbox immediately once we are sure that the resizing is feasible(PodResizingInProgress condition)
Why is this needed:
To reduce overall cost of maintaining a warm-up pool, the users desire to keep a pool of sandboxes with minimum resources, and once the sandboxes is claimed, the allocated sandbox can be resized inplace to a larger size. And the sandbox can even be return to the agent user even if the sandbox is still in the process of inplace resizing.