Propagate DisableAgent flag

The recent setMasterRoleLabel stuff uses it.
This commit is contained in:
YAMAMOTO Takashi 2019-10-28 14:43:11 +09:00
parent fc4fc47ec0
commit 4970d6133f

View File

@ -55,6 +55,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
} }
serverConfig := server.Config{} serverConfig := server.Config{}
serverConfig.DisableAgent = cfg.DisableAgent
serverConfig.ControlConfig.ClusterSecret = cfg.ClusterSecret serverConfig.ControlConfig.ClusterSecret = cfg.ClusterSecret
serverConfig.ControlConfig.DataDir = cfg.DataDir serverConfig.ControlConfig.DataDir = cfg.DataDir
serverConfig.ControlConfig.KubeConfigOutput = cfg.KubeConfigOutput serverConfig.ControlConfig.KubeConfigOutput = cfg.KubeConfigOutput