-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update flannel to v0.25.4 and fixed issue with IPv6 mask #10422
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10422 +/- ##
==========================================
- Coverage 43.03% 41.65% -1.38%
==========================================
Files 163 177 +14
Lines 16534 14830 -1704
==========================================
- Hits 7115 6178 -937
+ Misses 8158 7471 -687
+ Partials 1261 1181 -80
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pkg/agent/flannel/flannel.go
Outdated
if _, err := os.Stat(path); !os.IsNotExist(err) { | ||
prevSubnetVals, err := godotenv.Read(path) | ||
if err != nil { | ||
logrus.Errorf("Couldn't fetch previous %s from subnet file at %s: %v", CIDRKey, path, err) | ||
logrus.Errorf("Couldn't fetch previous %s from subnet file at %s: %s", CIDRKey, path, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error should use %v
pkg/agent/flannel/flannel.go
Outdated
for i := range cidrs { | ||
_, cidr, err := net.ParseCIDR(cidrs[i]) | ||
if err != nil { | ||
logrus.Errorf("Couldn't parse previous %s from subnet file at %s: %s", CIDRKey, path, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/agent/flannel/flannel.go
Outdated
if _, err := os.Stat(path); !os.IsNotExist(err) { | ||
prevSubnetVals, err := godotenv.Read(path) | ||
if err != nil { | ||
logrus.Errorf("Couldn't fetch previous %s from subnet file at %s: %v", CIDRKey, path, err) | ||
logrus.Errorf("Couldn't fetch previous %s from subnet file at %s: %s", CIDRKey, path, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that it reads the subnet file, e.g.
FLANNEL_NETWORK=10.42.0.0/16
FLANNEL_SUBNET=10.42.0.1/24
FLANNEL_IPV6_NETWORK=2001:cafe:42::/56
FLANNEL_IPV6_SUBNET=2001:cafe:42::1/64
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
But there are two IPv6 networks?
pkg/agent/flannel/flannel.go
Outdated
for i := range cidrs { | ||
_, cidr, err := net.ParseCIDR(cidrs[i]) | ||
if err != nil { | ||
logrus.Errorf("Couldn't parse previous %s from subnet file at %s: %s", CIDRKey, path, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, sorry I missed it
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
Proposed Changes
Bump Flannel version to v0.25.4 and fixes an issue when IPv6masq flag is configured
Types of Changes
Verification
Testing
Linked Issues
#10419
User-Facing Change
Further Comments