Skip to content

Commit

Permalink
Merge pull request AliyunContainerService#765 from l1b0k/feat/event
Browse files Browse the repository at this point in the history
controlplane: ignore conflict error
  • Loading branch information
BSWANG authored Jan 16, 2025
2 parents 869b56d + e516f20 commit d4a58b4
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 d4a58b4

Please sign in to comment.