Changing the signature of run_native (e.g. to add an option changing the logging behavior), requires editing 3 other files: run_kubernetes, run_docker, and the __main__.py. This PR allows run_kubernetes and run_docker to pass arbitrary arguments to run_native provided that they are serializable with json. A side effect is that run_kubernetes can now take an actual configuration dictionary rather than a url pointing to one.
It also tidies up the implementation of run_kubernetes especially. run_docker still has some unavoidable logic to do with creating the bind-mounts, but is slightly cleaner now too.
Changing the signature of run_native (e.g. to add an option changing the logging behavior), requires editing 3 other files:
run_kubernetes
,run_docker
, and the__main__.py
. This PR allowsrun_kubernetes
andrun_docker
to pass arbitrary arguments torun_native
provided that they are serializable withjson
. A side effect is thatrun_kubernetes
can now take an actual configuration dictionary rather than a url pointing to one.It also tidies up the implementation of
run_kubernetes
especially.run_docker
still has some unavoidable logic to do with creating the bind-mounts, but is slightly cleaner now too.