mirror of https://github.com/k3s-io/k3s
Wrap error stating that it is coming from netpol
Signed-off-by: Manuel Buil <mbuil@suse.com>pull/7549/head
parent
36084d55ba
commit
b834ac9730
|
@ -129,7 +129,7 @@ func Run(ctx context.Context, nodeConfig *config.Node) error {
|
|||
npc, err := netpol.NewNetworkPolicyController(client, krConfig, podInformer, npInformer, nsInformer, &sync.Mutex{},
|
||||
iptablesCmdHandlers, ipSetHandlers)
|
||||
if err != nil {
|
||||
return err
|
||||
return errors.Wrap(err, "unable to initialize Network Policy Controller")
|
||||
}
|
||||
|
||||
podInformer.AddEventHandler(npc.PodEventHandler)
|
||||
|
|
Loading…
Reference in New Issue