Merge pull request #7548 from manuelbuil/fixnetpollogs125

[Release 1.25] Wrap error stating that it is coming from netpol
pull/7574/head
Manuel Buil 2023-05-15 16:33:33 +02:00 committed by GitHub
commit 3ce8dd17c9
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)