Skip to content

Commit

Permalink
Merge pull request #7548 from manuelbuil/fixnetpollogs125
Browse files Browse the repository at this point in the history
[Release 1.25] Wrap error stating that it is coming from netpol
  • Loading branch information
manuelbuil authored May 15, 2023
2 parents a41015a + 0b14452 commit 3ce8dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/netpol/netpol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ce8dd1

Please sign in to comment.