File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ type NoGenerationPredicate struct {
5959
6060// Update implements the default UpdateEvent filter for validating absence Generation.
6161func (NoGenerationPredicate ) Update (e event.UpdateEvent ) bool {
62- if e .ObjectOld == nil {
63- log .V (1 ).Info ("Update event has no old metadata" , "event" , e )
64- return false
65- }
6662 if e .ObjectOld == nil {
6763 log .V (1 ).Info ("Update event has no old runtime object to update" , "event" , e )
6864 return false
@@ -71,10 +67,6 @@ func (NoGenerationPredicate) Update(e event.UpdateEvent) bool {
7167 log .V (1 ).Info ("Update event has no new runtime object for update" , "event" , e )
7268 return false
7369 }
74- if e .ObjectNew == nil {
75- log .V (1 ).Info ("Update event has no new metadata" , "event" , e )
76- return false
77- }
7870 // Since generation is monotonically increasing, the new generation will always be greater than the old
7971 // iff the object respects generations.
8072 return e .ObjectNew .GetGeneration () == e .ObjectOld .GetGeneration () && e .ObjectNew .GetGeneration () == 0
You can’t perform that action at this time.
0 commit comments