Remove deprecated flag --cleanup-iptables from kube-proxy

Remove deprecated flag --cleanup-iptables from kube-proxy

update license

update license
This commit is contained in:
Anish Ramasekar 2019-05-25 11:39:56 -07:00
parent 82bfa667ed
commit aa07730275
No known key found for this signature in database
GPG Key ID: 9E68541CF00F1FA4

View File

@ -28,7 +28,7 @@ import (
"strings"
"time"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
v1meta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
@ -200,9 +200,6 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
"Maximum number of NAT connections to track (0 to leave as-is). This overrides conntrack-max-per-core and conntrack-min.")
fs.MarkDeprecated("conntrack-max", "This feature will be removed in a later release.")
fs.BoolVar(&o.CleanupAndExit, "cleanup-iptables", o.CleanupAndExit, "If true cleanup iptables and ipvs rules and exit.")
fs.MarkDeprecated("cleanup-iptables", "This flag is replaced by --cleanup.")
fs.StringVar(&o.config.ResourceContainer, "resource-container", o.config.ResourceContainer, "Absolute name of the resource-only container to create and run the Kube-proxy in (Default: /kube-proxy).")
fs.MarkDeprecated("resource-container", "This feature will be removed in a later release.")
}