Merge pull request #7549 from manuelbuil/fixnetpollogs124

[Release 1.24] Wrap error stating that it is coming from netpol
pull/7577/head
Manuel Buil 2023-05-15 16:33:04 +02:00 committed by GitHub
commit f575bd1cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)