Skip to content

Commit

Permalink
controlplane: ignore conflict error
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 16, 2025
1 parent eaae3b9 commit e516f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/pod/pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ func (m *ReconcilePod) createENI(ctx context.Context, allocs *[]*v1beta1.Allocat
var err error
defer func() {
if err != nil {
if k8sErr.IsConflict(err) {
return
}
l.WithValues("eni", "").Error(err, "create fail")
m.record.Eventf(podENI, corev1.EventTypeWarning, types.EventCreateENIFailed, err.Error())
} else {
Expand Down

0 comments on commit e516f20

Please sign in to comment.