mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
Currently only waits on etcd and kine, as other components are stateless and do not need to shut down cleanly. Terminal but non-fatal errors now request shutdown via context cancellation, instead of just logging a fatal error. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
14 lines
332 B
Go
14 lines
332 B
Go
package netpol
|
|
|
|
import (
|
|
"context"
|
|
"sync"
|
|
|
|
daemonconfig "github.com/k3s-io/k3s/pkg/daemons/config"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func Run(ctx context.Context, wg *sync.WaitGroup, nodeConfig *daemonconfig.Node) error {
|
|
logrus.Warnf("Skipping network policy controller start, netpol is not supported on windows")
|
|
return nil
|
|
}
|