-
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
[K3s][Windows Port] Build script, multi-call binary, and Flannel #7259
Conversation
4432537
to
f2f972b
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7259 +/- ##
==========================================
+ Coverage 47.27% 51.08% +3.80%
==========================================
Files 143 145 +2
Lines 14806 14994 +188
==========================================
+ Hits 6999 7659 +660
+ Misses 6692 6118 -574
- Partials 1115 1217 +102
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Thank you for the PR! I have a couple nits on some of the inline os-specific logic, I'm excited to get this merged once those are addressed!
@seanyen are you still working on this? |
yes, sorry I was little bit slow on this. I am distracted by other works and will be back to this one in 2 week-ish. |
f2f972b
to
b760d2b
Compare
@seanyen very much appreciate the work on this! Please note we can't merge unsigned commits due to our DCO check, can you please make sure to commit with -s |
sure thing! I am still working on the feedback and definitely will make sure all checks are green before getting your attention again. |
Thanks so much! |
You can update your PR to use the new tag: https://github.com/rancher/plugins/releases/tag/v1.3.0-k3s1 Line 56 in fe9604c
|
72b31ce
to
152d886
Compare
lgtm, but looks like it needs a rebase |
152d886
to
1c5ff53
Compare
Thanks. I did a rebase. Let me know anything else to take care. |
Did you |
1c5ff53
to
ebe7b6e
Compare
Multiple builds are failing with:
@dereknola do you think this might be related to your change to exclude some of the git repo structure from being copied into the build image? |
4ef8adc
to
5c1e7d5
Compare
Cool, now I saw all checks are all green now. Thank @dereknola. |
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.
Looks good! I just have a couple of comments
2279e13
to
4eed3e4
Compare
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Derek Nola <derek.nola@suse.com> Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
Signed-off-by: Sean Yen <seanyen@microsoft.com>
4eed3e4
to
95ad813
Compare
Thanks! The rebase was done. |
YOLO 🎉🎉 |
Congrats! Thank you all for the hard work |
Thanks so much Francisco and Sean for all your work on this, we're very excited to continue working with y'all on this! |
Silly question - ran through the build process (make download && make generate && make), but didn't get a k3s.exe out of it - what's the proper step-by-step procedure to build the k3s.exe? Thanks! |
Okay, I think maybe I just didn't read closely enough. Looks like we need to run this on a WSL prompt:
Tested and worked! Had to downgrade to go 1.21.9 though! |
Proposed Changes
This is the initial set of K3s agent for Windows port. This pull request is focused on:
Types of Changes
New feature
Verification
Run
GOOS=windows CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc SKIP_VALIDATE=true ./scripts/ci
on Ubuntu machine to proof build Windows port.NOTE: You may need to install the following packages to build:
Testing
I am testing it on a Windows dev box with Hyper-V enabled, and I created two VMs:
Two VMs are on the same subnet (in my case, I am using
Default Switch
).On Linux VM, I deployed a k3s control plane node with all the default configuration and necessary firewall rules. Additionally, I pass
--disable-network-policy
tok3s server
command, since Windows node doesn't support network policy yet.On Windows VM, I prepared a
k3s-config.yaml
file and the content is as follows:And additionally, I added the following firewall rules on Windows VM:
And finally, I ran K3s on Windows VM by the following command:
Linked Issues
#7258
User-Facing Change
None.
Further Comments
None.