runconfig: split resources into a struct Upstream-commit: f064b9941c0c6070740339971a0bb59b4fe6195f Component: engine