@@ -53,9 +53,6 @@ type ContainerRuntimeOptions struct {
...
@@ -53,9 +53,6 @@ type ContainerRuntimeOptions struct {
// and overrides the default MTU for cases where it cannot be automatically
// and overrides the default MTU for cases where it cannot be automatically
// computed (such as IPSEC).
// computed (such as IPSEC).
NetworkPluginMTUint32
NetworkPluginMTUint32
// NetworkPluginDir is the full path of the directory in which to search
// for network plugins (and, for backwards-compat, CNI config files)
NetworkPluginDirstring
// CNIConfDir is the full path of the directory in which to search for
// CNIConfDir is the full path of the directory in which to search for
// CNI config files
// CNI config files
CNIConfDirstring
CNIConfDirstring
...
@@ -87,9 +84,6 @@ func (s *ContainerRuntimeOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -87,9 +84,6 @@ func (s *ContainerRuntimeOptions) AddFlags(fs *pflag.FlagSet) {
// Network plugin settings. Shared by both docker and rkt.
// Network plugin settings. Shared by both docker and rkt.
fs.StringVar(&s.NetworkPluginName,"network-plugin",s.NetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")
fs.StringVar(&s.NetworkPluginName,"network-plugin",s.NetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")
//TODO(#46410): Remove the network-plugin-dir flag.
fs.StringVar(&s.NetworkPluginDir,"network-plugin-dir",s.NetworkPluginDir,"<Warning: Alpha feature> The full path of the directory in which to search for network plugins or CNI config")
fs.MarkDeprecated("network-plugin-dir","Use --cni-bin-dir instead. This flag will be removed in a future version.")
fs.StringVar(&s.CNIConfDir,"cni-conf-dir",s.CNIConfDir,"<Warning: Alpha feature> The full path of the directory in which to search for CNI config files. Default: /etc/cni/net.d")
fs.StringVar(&s.CNIConfDir,"cni-conf-dir",s.CNIConfDir,"<Warning: Alpha feature> The full path of the directory in which to search for CNI config files. Default: /etc/cni/net.d")
fs.StringVar(&s.CNIBinDir,"cni-bin-dir",s.CNIBinDir,"<Warning: Alpha feature> The full path of the directory in which to search for CNI plugin binaries. Default: /opt/cni/bin")
fs.StringVar(&s.CNIBinDir,"cni-bin-dir",s.CNIBinDir,"<Warning: Alpha feature> The full path of the directory in which to search for CNI plugin binaries. Default: /opt/cni/bin")
fs.Int32Var(&s.NetworkPluginMTU,"network-plugin-mtu",s.NetworkPluginMTU,"<Warning: Alpha feature> The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.")
fs.Int32Var(&s.NetworkPluginMTU,"network-plugin-mtu",s.NetworkPluginMTU,"<Warning: Alpha feature> The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.")