Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.go: add the "net-config-path" flag #1136

Merged
merged 1 commit into from
May 28, 2019

Conversation

neolit123
Copy link
Contributor

@neolit123 neolit123 commented May 15, 2019

Description

Add the flag "net-config-path" that holds the path
for the network configuration.

Set the default value to "/etc/kube-flannel/net-conf.json".

Todos

  • Tests
  • Documentation
  • Release note

Release Note

add the "net-config-path" CLI flag (set to "/etc/kube-flannel/net-conf.json" by default)

/assign @ksubrmnn
/area configuration
/kind enhancement

@@ -349,7 +351,7 @@ func recycleIPTables(nw ip.IP4Net, lease *subnet.Lease) error {
prevNetwork := ReadCIDRFromSubnetFile(opts.subnetFile, "FLANNEL_NETWORK")
prevSubnet := ReadCIDRFromSubnetFile(opts.subnetFile, "FLANNEL_SUBNET")
// recycle iptables rules only when network configured or subnet leased is not equal to current one.
if prevNetwork != nw && prevSubnet != lease.Subnet{
if prevNetwork != nw && prevSubnet != lease.Subnet {
Copy link
Contributor Author

@neolit123 neolit123 May 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go-fmt amended this line.

@ksubrmnn
Copy link
Contributor

ksubrmnn commented May 15, 2019

LGTM
@madhanrm

Add the flag "net-config-path" that holds the path
for the network configuration.

Set the default value to "/etc/kube-flannel/net-conf.json".

Signed-off-by: Lubomir I. Ivanov <[email protected]>
Copy link
Contributor

@rajatchopra rajatchopra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Useful. Thanks.

@rajatchopra rajatchopra merged commit a84e156 into flannel-io:master May 28, 2019
@balchua balchua mentioned this pull request Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants