Refactor swarm node config to struct Upstream-commit: 844a3166e5c8ea5037a658f1e8f0628f5abc8dce Component: engine