Skip to content

Commit

Permalink
update pod
Browse files Browse the repository at this point in the history
  • Loading branch information
gao12312 committed Dec 20, 2024
1 parent 14c4368 commit 30ff865
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func (c *RootPodSyncReconciler) SetupWithManager(mgr manager.Manager) error {
return false
},
UpdateFunc: func(updateEvent event.UpdateEvent) bool {
old := updateEvent.ObjectOld.(*corev1.Pod)
new := updateEvent.ObjectNew.(*corev1.Pod)
oldPod := updateEvent.ObjectOld.(*corev1.Pod)
newPod := updateEvent.ObjectNew.(*corev1.Pod)
if !skipFunc(updateEvent.ObjectNew) {
return false
}
return !reflect.DeepEqual(old.Status, new.Status)
return !reflect.DeepEqual(oldPod.Status, newPod.Status)
},
DeleteFunc: func(deleteEvent event.DeleteEvent) bool {
return false
Expand Down

0 comments on commit 30ff865

Please sign in to comment.