Skip to content

Commit

Permalink
Merge pull request #95 from draychev/simplify-2
Browse files Browse the repository at this point in the history
Simplify IAM Controller's Update fn
  • Loading branch information
tekenstam authored May 7, 2022
2 parents a7120cf + b86acef commit 32e2109
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/iamrole_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,7 @@ func (StatusUpdatePredicate) Update(e event.UpdateEvent) bool {
oldObj := e.ObjectOld.(*iammanagerv1alpha1.Iamrole)
newObj := e.ObjectNew.(*iammanagerv1alpha1.Iamrole)

if oldObj.Status != newObj.Status {
return false
}
return true
return oldObj.Status == newObj.Status
}

//SetupWithManager sets up manager with controller
Expand Down

0 comments on commit 32e2109

Please sign in to comment.