Skip to content

Commit 6adbe39

Browse files
authored
Merge pull request #5567 from twz123/iptables-linux-only
Don't try to install iptables binaries on non-Linux workers
2 parents 1dfd2cd + 1e0add7 commit 6adbe39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/worker/worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (c *Command) Start(ctx context.Context, nodeName apitypes.NodeName, kubelet
183183
c.WorkerProfile = "default-windows"
184184
}
185185

186-
if controller == nil {
186+
if controller == nil && runtime.GOOS == "linux" {
187187
componentManager.Add(ctx, &iptables.Component{
188188
IPTablesMode: c.WorkerOptions.IPTablesMode,
189189
BinDir: c.K0sVars.BinDir,

0 commit comments

Comments
 (0)