Avoid unneccessary update events
This commit is contained in:
		
							parent
							
								
									01dfbe6314
								
							
						
					
					
						commit
						9d0e3672ee
					
				|  | @ -487,7 +487,7 @@ func (c *Controller) postgresqlUpdate(prev, cur interface{}) { | |||
| 	if pgOld != nil && pgNew != nil { | ||||
| 		// Avoid the inifinite recursion for status updates
 | ||||
| 		if reflect.DeepEqual(pgOld.Spec, pgNew.Spec) { | ||||
| 			if pgNew.Annotations != nil && pgOld.Annotations != nil && !reflect.DeepEqual(pgNew.Annotations, pgOld.Annotations) { | ||||
| 			if reflect.DeepEqual(pgNew.Annotations, pgOld.Annotations) { | ||||
| 				return | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue