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>pull/11773/head
parent
99f4f5ad12
commit
96c2dd3865
|
@ -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