Skip to content

Commit 7e85ab8

Browse files
authored
Fix(datastore): Correct inverted log messages in podResyncAll (#1511)
Signed-off-by: Yuan Fang <[email protected]>
1 parent 3d4a636 commit 7e85ab8

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
@@ -256,7 +256,7 @@ func (ds *datastore) podResyncAll(ctx context.Context, reader client.Reader) err
256256
}
257257
namespacedName := types.NamespacedName{Name: pod.Name, Namespace: pod.Namespace}
258258
activePods[pod.Name] = true
259-
if ds.PodUpdateOrAddIfNotExist(&pod) {
259+
if !ds.PodUpdateOrAddIfNotExist(&pod) {
260260
logger.V(logutil.DEFAULT).Info("Pod added", "name", namespacedName)
261261
} else {
262262
logger.V(logutil.DEFAULT).Info("Pod already exists", "name", namespacedName)

0 commit comments

Comments
 (0)