mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon: remove deprecated fields and flags for cluster-advertise
Removes: - CommonConfig.ClusterStore - CommonConfig.ClusterOpts - CommonConfig.ClusterAdvertise - The deprecated --cluster-advertise, --cluster-store, and --cluster-store-opt flags Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
494dadb8a3
commit
68bf777ece
3 changed files with 0 additions and 34 deletions
|
@ -85,12 +85,6 @@ func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
|
|||
_ = flags.MarkHidden("graph")
|
||||
flags.BoolVarP(&conf.AutoRestart, "restart", "r", true, "--restart on the daemon has been deprecated in favor of --restart policies on docker run")
|
||||
_ = flags.MarkDeprecated("restart", "Please use a restart policy on docker run")
|
||||
flags.StringVar(&conf.ClusterAdvertise, "cluster-advertise", "", "Address or interface name to advertise")
|
||||
_ = flags.MarkDeprecated("cluster-advertise", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
|
||||
flags.StringVar(&conf.ClusterStore, "cluster-store", "", "URL of the distributed storage backend")
|
||||
_ = flags.MarkDeprecated("cluster-store", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
|
||||
flags.Var(opts.NewNamedMapOpts("cluster-store-opts", conf.ClusterOpts, nil), "cluster-store-opt", "Set cluster store options")
|
||||
_ = flags.MarkDeprecated("cluster-store-opt", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -79,9 +79,6 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
|
|||
if cli.Config, err = loadDaemonCliConfig(opts); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := checkDeprecatedOptions(cli.Config); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
serverConfig, err := newAPIServerConfig(cli.Config)
|
||||
if err != nil {
|
||||
|
@ -513,14 +510,6 @@ func normalizeHosts(config *config.Config) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func checkDeprecatedOptions(config *config.Config) error {
|
||||
// Overlay networks with external k/v stores have been deprecated
|
||||
if config.ClusterAdvertise != "" || len(config.ClusterOpts) > 0 || config.ClusterStore != "" {
|
||||
return errors.New("Host-discovery and overlay networks with external k/v stores are deprecated. The 'cluster-advertise', 'cluster-store', and 'cluster-store-opt' options have been removed")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func initRouter(opts routerOptions) {
|
||||
decoder := runconfig.ContainerDecoder{
|
||||
GetSysInfo: func() *sysinfo.SysInfo {
|
||||
|
|
|
@ -176,23 +176,6 @@ type CommonConfig struct {
|
|||
// alive upon daemon shutdown/start
|
||||
LiveRestoreEnabled bool `json:"live-restore,omitempty"`
|
||||
|
||||
// ClusterStore is the storage backend used for the cluster information. It is used by both
|
||||
// multihost networking (to store networks and endpoints information) and by the node discovery
|
||||
// mechanism.
|
||||
// Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
|
||||
ClusterStore string `json:"cluster-store,omitempty"`
|
||||
|
||||
// ClusterOpts is used to pass options to the discovery package for tuning libkv settings, such
|
||||
// as TLS configuration settings.
|
||||
// Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
|
||||
ClusterOpts map[string]string `json:"cluster-store-opts,omitempty"`
|
||||
|
||||
// ClusterAdvertise is the network endpoint that the Engine advertises for the purpose of node
|
||||
// discovery. This should be a 'host:port' combination on which that daemon instance is
|
||||
// reachable by other hosts.
|
||||
// Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
|
||||
ClusterAdvertise string `json:"cluster-advertise,omitempty"`
|
||||
|
||||
// MaxConcurrentDownloads is the maximum number of downloads that
|
||||
// may take place at a time for each pull.
|
||||
MaxConcurrentDownloads int `json:"max-concurrent-downloads,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue