Commit 4aafff02 authored by Manuel Buil's avatar Manuel Buil

Wrap error stating that it is coming from netpol

Signed-off-by: 's avatarManuel Buil <mbuil@suse.com>
parent cbe8d33c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment