Skip to content

Commit

Permalink
Merge pull request #5567 from twz123/iptables-linux-only
Browse files Browse the repository at this point in the history
Don't try to install iptables binaries on non-Linux workers
  • Loading branch information
twz123 authored Feb 11, 2025
2 parents 1dfd2cd + 1e0add7 commit 6adbe39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (c *Command) Start(ctx context.Context, nodeName apitypes.NodeName, kubelet
c.WorkerProfile = "default-windows"
}

if controller == nil {
if controller == nil && runtime.GOOS == "linux" {
componentManager.Add(ctx, &iptables.Component{
IPTablesMode: c.WorkerOptions.IPTablesMode,
BinDir: c.K0sVars.BinDir,
Expand Down

0 comments on commit 6adbe39

Please sign in to comment.