This PR introduces a new setup_envs method for the Executor trait. It allows any implementors of the Executor trait to control how environment variables specified in the OCI spec are handled. The default implementation mirrors the behavior of the one implemented in the container_init_process, which involves removing existing environment variables and setting the ones specified in the OCI spec.
TODO
[x] Make consensus about the interface
[x] Consider defining a dedicated error instead of ExecutorError
fixes #2815
This PR introduces a new
setup_envs
method for theExecutor
trait. It allows any implementors of theExecutor
trait to control how environment variables specified in the OCI spec are handled. The default implementation mirrors the behavior of the one implemented in thecontainer_init_process
, which involves removing existing environment variables and setting the ones specified in the OCI spec.TODO
ExecutorError