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

[release-1.30] Render CNI dir config whenever vars are set #11821

Merged

Conversation

brandond
Copy link
Member

Proposed Changes

Render CNI dir config whenever vars are set

RKE2 on Windows sets CNI dirs in node config even though embedded flannel is disabled (NoFlannel=true). We need to gate rendering this config on the vars being, set NOT on NoFlannel being false.

All other configurations (K3s on Windows and Linux, RKE2 on Linux) worked fine, but RKE2 on Windows was relying on this config section not being in a conditional within the template.

Types of Changes

rke2 windows regression fix

Verification

Test RKE2 in Windows.

Testing

TODO on rke2 side.

Linked Issues

rancher/rke2#7793

User-Facing Change

Further Comments

@brandond brandond requested a review from a team as a code owner February 20, 2025 18:58
RKE2 on Windows sets CNI bin dirs in node config even though embedded flannel is disabled (NoFlannel=true). We need to gate rendering this config on the vars being, set NOT on NoFlannel being false.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the fix-cni-dirs-windows_release-1.30 branch from 10da29a to 6e4c2cb Compare February 20, 2025 19:09
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the fix-cni-dirs-windows_release-1.30 branch from a0064de to a07fa53 Compare February 20, 2025 22:34
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the fix-cni-dirs-windows_release-1.30 branch from a07fa53 to f678210 Compare February 21, 2025 00:13
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.70%. Comparing base (d7469b8) to head (f678210).
Report is 4 commits behind head on release-1.30.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.30   #11821      +/-   ##
================================================
- Coverage         48.12%   45.70%   -2.42%     
================================================
  Files               206      206              
  Lines             19688    19688              
================================================
- Hits               9475     8999     -476     
- Misses             8832     9370     +538     
+ Partials           1381     1319      -62     
Flag Coverage Δ
e2etests 40.06% <ø> (-3.88%) ⬇️
inttests 18.53% <ø> (-16.28%) ⬇️
unittests 16.12% <ø> (+0.01%) ⬆️

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.

@brandond brandond merged commit b86a694 into k3s-io:release-1.30 Feb 21, 2025
48 checks passed
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