Skip to content

Commit

Permalink
tidy up the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
fdfzcq committed Mar 16, 2023
1 parent 07ebff6 commit c927fcc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/service_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct

if deleting {
intendedStatus.NEGStatus = NEGStatus{}
}

if reflect.DeepEqual(status.status, intendedStatus) && !deleting {
} else if reflect.DeepEqual(status.status, intendedStatus) {
// Equal, no reconciliation necessary
return reconcile.Result{}, nil
}
Expand Down

0 comments on commit c927fcc

Please sign in to comment.