Unverified Commit 10fb39ae authored by Manuel Buil's avatar Manuel Buil Committed by GitHub

Merge pull request #7539 from manuelbuil/addLogsKubeRouter

Wrap error stating that it is coming from netpol
parents 9bcfac8b 4aafff02
......@@ -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