// When an object is updated.
When an object is updated.
// When an object is updated .
func (c *MizarPodController) updateObj(old, cur interface{}) {
	curObj := cur.(*v1.Pod)
	oldObj := old.(*v1.Pod)
	if curObj.ResourceVersion == oldObj.ResourceVersion {
		return
	}
	if curObj.DeletionTimestamp != nil {
		return
	}
	key, _ := controller.KeyFunc(curObj)
	c.queue.Add(KeyWithEventType{Key: key, EventType: EventType_Update, ResourceVersion: curObj.ResourceVersion})
}
func ( c * MizarPodController ) updateObj ( old , cur interface { } ) { curObj := cur . ( * v1 . Pod ) oldObj := old . ( * v1 . Pod ) if curObj . ResourceVersion == oldObj . ResourceVersion { return } if curObj . DeletionTimestamp != nil { return } key , _ := controller . KeyFunc ( curObj ) c . queue . Add ( KeyWithEventType { Key : key , EventType : EventType_Update , ResourceVersion : curObj . ResourceVersion } ) }
When an object is updated.
When an object is updated .
// Periodic resync will send update events for all known objects. // Two different versions of the same object will always have different RVs. // Object is being deleted. Don't handle update anymore.