Skip to content

Commit

Permalink
fix: k8s v1.27 added an unusued arg boolean to OnAdd
Browse files Browse the repository at this point in the history
Added it to false even though it's not used anyway in the func
(cache.ResourceEventHandlerFuncs).OnAdd(obj interface{}, isInInitialList
bool) implementation.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Aug 1, 2023
1 parent 76831cf commit 3f57a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/policyfilter/k8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (ts *testState) eventHandler(m *state) cache.ResourceEventHandler {
return cache.ResourceEventHandlerFuncs{
AddFunc: func(obj interface{}) {
ts.cbAdds.Add(1)
h.OnAdd(obj)
h.OnAdd(obj, false)
},
UpdateFunc: func(oldObj, newObj interface{}) {
ts.cbUpds.Add(1)
Expand Down

0 comments on commit 3f57a01

Please sign in to comment.