Skip to content

Commit

Permalink
Merge pull request #961 from cloudnativelabs/remove_deprecated_cluste…
Browse files Browse the repository at this point in the history
…r-cidr_option

fix(options): remove deprecated cluster-cidr option
  • Loading branch information
aauren committed Aug 2, 2020
2 parents 19a5b1a + 5ef989c commit d5af1a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Usage of kube-router:
--cache-sync-timeout duration The timeout for cache synchronization (e.g. '5s', '1m'). Must be greater than 0. (default 1m0s)
--cleanup-config Cleanup iptables rules, ipvs, ipset configuration and exit.
--cluster-asn uint ASN number under which cluster nodes will run iBGP.
--cluster-cidr string CIDR range of pods in the cluster. It is used to identify traffic originating from and destinated to pods.
--disable-source-dest-check Disable the source-dest-check attribute for AWS EC2 instances. When this option is false, it must be set some other way. (default true)
--enable-cni Enable CNI plugin. Disable if you want to use kube-router features alongside another CNI plugin. (default true)
--enable-ibgp Enables peering with nodes with the same ASN, if disabled will only peer with external BGP peers (default true)
Expand Down
3 changes: 0 additions & 3 deletions pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type KubeRouterConfig struct {
CacheSyncTimeout time.Duration
CleanupConfig bool
ClusterAsn uint
ClusterCIDR string
ClusterIPCIDR string
NodePortRange string
DisableSrcDstCheck bool
Expand Down Expand Up @@ -107,8 +106,6 @@ func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet) {
"Cleanup iptables rules, ipvs, ipset configuration and exit.")
fs.BoolVar(&s.MasqueradeAll, "masquerade-all", false,
"SNAT all traffic to cluster IP/node port.")
fs.StringVar(&s.ClusterCIDR, "cluster-cidr", s.ClusterCIDR,
"CIDR range of pods in the cluster. It is used to identify traffic originating from and destinated to pods.")
fs.StringSliceVar(&s.ExcludedCidrs, "excluded-cidrs", s.ExcludedCidrs,
"Excluded CIDRs are used to exclude IPVS rules from deletion.")
fs.StringVar(&s.ClusterIPCIDR, "service-cluster-ip-range", s.ClusterIPCIDR,
Expand Down

0 comments on commit d5af1a9

Please sign in to comment.