Skip to content

Commit aab828e

Browse files
authored
Merge pull request #697 from fasaxc/fix-resync-loop-ready
Pro-actively mark the ready flag resync as done.
2 parents 119c3c8 + c221c64 commit aab828e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/backend/k8s/syncer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ func (syn *kubeSyncer) performSnapshot(versions *resourceVersions) (map[string][
837837
}
838838
snap[KEY_RS] = []model.KVPair{*ready}
839839
keys[KEY_RS] = map[string]bool{ready.Key.String(): true}
840+
// There's no watcher for the ready state so we simply mark the resync as done.
841+
syn.needsResync[KEY_RS] = false
840842

841843
log.Infof("Snapshot resourceVersions: %+v", versions)
842844
log.Debugf("Created snapshot: %+v", snap)

0 commit comments

Comments
 (0)