Skip to content

Commit 386f5a1

Browse files
committed
remove status update from eventStatusRecorcer
1 parent 0f434e9 commit 386f5a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/controller/ipaddressclaim_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,5 +250,10 @@ func (r *IpAddressClaimReconciler) updateStatus(ctx context.Context, claim *netb
250250
}
251251
}
252252

253+
err := r.Status().Update(ctx, claim)
254+
if err != nil {
255+
return err
256+
}
257+
253258
return nil
254259
}

internal/controller/utils.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ func (esr *EventStatusRecorder) Report(ctx context.Context, o ObjectWithConditio
100100
if conditionChanged {
101101
esr.rec.Event(o, eventType, condition.Reason, condition.Message)
102102
logger.Info("Condition "+condition.Type+" changed to "+string(condition.Status), "Reason", condition.Reason, "Message", condition.Message)
103-
104-
err := esr.client.Status().Update(ctx, o)
105-
if err != nil {
106-
return err
107-
}
108103
}
109104

110105
return nil

0 commit comments

Comments
 (0)