Skip to content

Commit

Permalink
Merge pull request #7547 from manuelbuil/fixnetpollogs126
Browse files Browse the repository at this point in the history
[Release 1.26] Wrap error stating that it is coming from netpol
  • Loading branch information
manuelbuil authored May 15, 2023
2 parents 5e32828 + 2b838e6 commit e8d9ed7
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 e8d9ed7

Please sign in to comment.