From 4aafff0219bcd6c3c0e7c3987387cb9ee1222d77 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Fri, 12 May 2023 11:50:37 +0200 Subject: [PATCH] Wrap error stating that it is coming from netpol Signed-off-by: Manuel Buil --- pkg/agent/netpol/netpol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/netpol/netpol.go b/pkg/agent/netpol/netpol.go index b2c97ccd6c..faa0f15d7d 100644 --- a/pkg/agent/netpol/netpol.go +++ b/pkg/agent/netpol/netpol.go @@ -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)