Skip to content

Commit

Permalink
Merge pull request #2049 from tmaxjmc/master
Browse files Browse the repository at this point in the history
🐛fix: add more condition for resource's status filtering
  • Loading branch information
k8s-ci-robot authored Oct 21, 2020
2 parents 98cc901 + 961b49f commit 16515f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/awscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ func (r *AWSClusterReconciler) SetupWithManager(mgr ctrl.Manager, options contro
oldCluster.Status = infrav1.AWSClusterStatus{}
newCluster.Status = infrav1.AWSClusterStatus{}

oldCluster.ObjectMeta.ResourceVersion = ""
newCluster.ObjectMeta.ResourceVersion = ""

return !reflect.DeepEqual(oldCluster, newCluster)
},
},
Expand Down
3 changes: 3 additions & 0 deletions controllers/awsmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ func (r *AWSMachineReconciler) SetupWithManager(mgr ctrl.Manager, options contro
oldMachine.Status = infrav1.AWSMachineStatus{}
newMachine.Status = infrav1.AWSMachineStatus{}

oldMachine.ObjectMeta.ResourceVersion = ""
newMachine.ObjectMeta.ResourceVersion = ""

return !reflect.DeepEqual(oldMachine, newMachine)
},
},
Expand Down

0 comments on commit 16515f7

Please sign in to comment.