Merge pull request #43798 from thaJeztah/remove_deprecated
Remove various deprecated types and fields
This commit is contained in:
commit
11b03710ed
6 changed files with 0 additions and 63 deletions
|
@ -1,16 +0,0 @@
|
||||||
package container // import "github.com/docker/docker/api/types/container"
|
|
||||||
|
|
||||||
// ContainerCreateCreatedBody OK response to ContainerCreate operation
|
|
||||||
//
|
|
||||||
// Deprecated: use CreateResponse
|
|
||||||
type ContainerCreateCreatedBody = CreateResponse
|
|
||||||
|
|
||||||
// ContainerWaitOKBody OK response to ContainerWait operation
|
|
||||||
//
|
|
||||||
// Deprecated: use WaitResponse
|
|
||||||
type ContainerWaitOKBody = WaitResponse
|
|
||||||
|
|
||||||
// ContainerWaitOKBodyError container waiting error, if any
|
|
||||||
//
|
|
||||||
// Deprecated: use WaitExitError
|
|
||||||
type ContainerWaitOKBodyError = WaitExitError
|
|
|
@ -297,8 +297,6 @@ type Info struct {
|
||||||
Labels []string
|
Labels []string
|
||||||
ExperimentalBuild bool
|
ExperimentalBuild bool
|
||||||
ServerVersion string
|
ServerVersion string
|
||||||
ClusterStore string `json:",omitempty"` // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
|
|
||||||
ClusterAdvertise string `json:",omitempty"` // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
|
|
||||||
Runtimes map[string]Runtime
|
Runtimes map[string]Runtime
|
||||||
DefaultRuntime string
|
DefaultRuntime string
|
||||||
Swarm swarm.Info
|
Swarm swarm.Info
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
package volume // import "github.com/docker/docker/api/types/volume"
|
|
||||||
|
|
||||||
// VolumeCreateBody Volume configuration
|
|
||||||
//
|
|
||||||
// Deprecated: use CreateOptions
|
|
||||||
type VolumeCreateBody = CreateOptions
|
|
||||||
|
|
||||||
// VolumeListOKBody Volume list response
|
|
||||||
//
|
|
||||||
// Deprecated: use ListResponse
|
|
||||||
type VolumeListOKBody = ListResponse
|
|
|
@ -85,12 +85,6 @@ func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
|
||||||
_ = flags.MarkHidden("graph")
|
_ = 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.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.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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,9 +79,6 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
|
||||||
if cli.Config, err = loadDaemonCliConfig(opts); err != nil {
|
if cli.Config, err = loadDaemonCliConfig(opts); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := checkDeprecatedOptions(cli.Config); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
serverConfig, err := newAPIServerConfig(cli.Config)
|
serverConfig, err := newAPIServerConfig(cli.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -513,14 +510,6 @@ func normalizeHosts(config *config.Config) error {
|
||||||
return nil
|
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) {
|
func initRouter(opts routerOptions) {
|
||||||
decoder := runconfig.ContainerDecoder{
|
decoder := runconfig.ContainerDecoder{
|
||||||
GetSysInfo: func() *sysinfo.SysInfo {
|
GetSysInfo: func() *sysinfo.SysInfo {
|
||||||
|
|
|
@ -176,23 +176,6 @@ type CommonConfig struct {
|
||||||
// alive upon daemon shutdown/start
|
// alive upon daemon shutdown/start
|
||||||
LiveRestoreEnabled bool `json:"live-restore,omitempty"`
|
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
|
// MaxConcurrentDownloads is the maximum number of downloads that
|
||||||
// may take place at a time for each pull.
|
// may take place at a time for each pull.
|
||||||
MaxConcurrentDownloads int `json:"max-concurrent-downloads,omitempty"`
|
MaxConcurrentDownloads int `json:"max-concurrent-downloads,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue