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
[ upstream commit 3f57a01 ]

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 <mahe.tardy@gmail.com>
Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
  • Loading branch information
mtardy authored and kkourt committed Feb 22, 2024
1 parent 4416a45 commit c5183b4
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 c5183b4

Please sign in to comment.