cmd.Flags().StringVar(&cfg.API.AdvertiseAddress,"apiserver-advertise-address",cfg.API.AdvertiseAddress,`The IP address the API Server will advertise it's listening on. 0.0.0.0 means the default network interface's address.`)
cmd.Flags().Int32Var(&cfg.API.BindPort,"apiserver-bind-port",cfg.API.BindPort,`Port for the API Server to bind to.`)
cmd.Flags().StringVar(&cfg.Networking.PodSubnet,"pod-network-cidr",cfg.Networking.PodSubnet,`Specify range of IP addresses for the pod network; if set, the control plane will automatically allocate CIDRs for every node.`)
cmd.Flags().StringVar(&cfg.Networking.DNSDomain,"service-dns-domain",cfg.Networking.DNSDomain,`Use alternative domain for services, e.g. "myorg.internal.`)
}
subCmds=append(subCmds,cmd)
}
returnsubCmds
}
// runAddonsCmdFunc creates a cobra.Command Run function, by composing the call to the given cmdFunc with necessary additional steps (e.g preparation of input parameters)