Skip to content

Commit 186ac42

Browse files
committed
bug fix
Signed-off-by: Kuromesi <[email protected]>
1 parent baf6c37 commit 186ac42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/epp/datastore/datastore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (ds *datastore) PodUpdateOrAddIfNotExist(pod *corev1.Pod) bool {
300300
}
301301
_, ok := ds.pods.Load(new.NamespacedName)
302302
ds.pods.Store(new.NamespacedName, new)
303-
return ok
303+
return !ok
304304
}
305305

306306
func (ds *datastore) PodUpdate(f PodUpdateFunc, predicates ...PodListPredicate) {

0 commit comments

Comments
 (0)