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

Update flannel to v0.25.4 and fixed issue with IPv6 mask #10422

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

rbrtbnfgl
Copy link
Contributor

@rbrtbnfgl rbrtbnfgl commented Jun 28, 2024

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

@rbrtbnfgl rbrtbnfgl requested a review from a team as a code owner June 28, 2024 17:02
brandond
brandond previously approved these changes Jun 28, 2024
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 52.63158% with 18 lines in your changes missing coverage. Please review.

Project coverage is 41.65%. Comparing base (3ced503) to head (0f5ed2f).
Report is 384 commits behind head on master.

Files Patch % Lines
pkg/agent/flannel/flannel.go 52.63% 14 Missing and 4 partials ⚠️
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     
Flag Coverage Δ
e2etests 36.54% <52.63%> (-9.71%) ⬇️
inttests 19.92% <0.00%> (?)
unittests 11.34% <0.00%> (-4.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

error should use %v

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

same

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Copy link
Contributor

@manuelbuil manuelbuil left a 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?

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)
Copy link
Contributor

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

@rbrtbnfgl rbrtbnfgl merged commit faeaf1b into k3s-io:master Jul 1, 2024
28 checks passed
@rbrtbnfgl rbrtbnfgl deleted the flannel_fix branch July 1, 2024 16:57
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.

None yet

4 participants