@@ -97,55 +97,55 @@ var _ = Describe("Internal", func() {
9797 defer GinkgoRecover ()
9898 Expect (evt .Object ).To (Equal (pod ))
9999 }
100- instance .OnAdd (pod )
100+ instance .OnAdd (pod , false )
101101 })
102102
103103 It ("should used Predicates to filter CreateEvents" , func () {
104104 instance = internal .NewEventHandler (ctx , & controllertest.Queue {}, setfuncs , []predicate.Predicate {
105105 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return false }},
106106 })
107107 set = false
108- instance .OnAdd (pod )
108+ instance .OnAdd (pod , false )
109109 Expect (set ).To (BeFalse ())
110110
111111 set = false
112112 instance = internal .NewEventHandler (ctx , & controllertest.Queue {}, setfuncs , []predicate.Predicate {
113113 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return true }},
114114 })
115- instance .OnAdd (pod )
115+ instance .OnAdd (pod , false )
116116 Expect (set ).To (BeTrue ())
117117
118118 set = false
119119 instance = internal .NewEventHandler (ctx , & controllertest.Queue {}, setfuncs , []predicate.Predicate {
120120 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return true }},
121121 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return false }},
122122 })
123- instance .OnAdd (pod )
123+ instance .OnAdd (pod , false )
124124 Expect (set ).To (BeFalse ())
125125
126126 set = false
127127 instance = internal .NewEventHandler (ctx , & controllertest.Queue {}, setfuncs , []predicate.Predicate {
128128 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return false }},
129129 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return true }},
130130 })
131- instance .OnAdd (pod )
131+ instance .OnAdd (pod , false )
132132 Expect (set ).To (BeFalse ())
133133
134134 set = false
135135 instance = internal .NewEventHandler (ctx , & controllertest.Queue {}, setfuncs , []predicate.Predicate {
136136 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return true }},
137137 predicate.Funcs {CreateFunc : func (event.CreateEvent ) bool { return true }},
138138 })
139- instance .OnAdd (pod )
139+ instance .OnAdd (pod , false )
140140 Expect (set ).To (BeTrue ())
141141 })
142142
143143 It ("should not call Create EventHandler if the object is not a runtime.Object" , func () {
144- instance .OnAdd (& metav1.ObjectMeta {})
144+ instance .OnAdd (& metav1.ObjectMeta {}, false )
145145 })
146146
147147 It ("should not call Create EventHandler if the object does not have metadata" , func () {
148- instance .OnAdd (FooRuntimeObject {})
148+ instance .OnAdd (FooRuntimeObject {}, false )
149149 })
150150
151151 It ("should create an UpdateEvent" , func () {
@@ -281,7 +281,7 @@ var _ = Describe("Internal", func() {
281281 instance .OnDelete (tombstone )
282282 })
283283 It ("should ignore objects without meta" , func () {
284- instance .OnAdd (Foo {})
284+ instance .OnAdd (Foo {}, false )
285285 instance .OnUpdate (Foo {}, Foo {})
286286 instance .OnDelete (Foo {})
287287 })
0 commit comments