mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Wrap error stating that it is coming from netpol
Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
cbe8d33c93
commit
4aafff0219
@ -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
Block a user