mirror of https://github.com/k3s-io/k3s.git
Skip netpol startup on windows instead of panicing
Netpol startup is skipped with a warning on linux if ipset support is missing, we should do the same on windows
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 96c2dd3865
)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/11764/head
parent
59d4483fba
commit
0d68f0e5f1
|
@ -4,8 +4,10 @@ import (
|
|||
"context"
|
||||
|
||||
daemonconfig "github.com/k3s-io/k3s/pkg/daemons/config"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func Run(ctx context.Context, nodeConfig *daemonconfig.Node) error {
|
||||
panic("Netpol is not supported on windows ensure to pass --disable-network-policy")
|
||||
logrus.Warnf("Skipping network policy controller start, netpol is not supported on windows")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue