Skip to content

Commit

Permalink
Merge pull request #697 from fasaxc/fix-resync-loop-ready
Browse files Browse the repository at this point in the history
Pro-actively mark the ready flag resync as done.
  • Loading branch information
bcreane authored Nov 27, 2017
2 parents 119c3c8 + c221c64 commit aab828e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/backend/k8s/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ func (syn *kubeSyncer) performSnapshot(versions *resourceVersions) (map[string][
}
snap[KEY_RS] = []model.KVPair{*ready}
keys[KEY_RS] = map[string]bool{ready.Key.String(): true}
// There's no watcher for the ready state so we simply mark the resync as done.
syn.needsResync[KEY_RS] = false

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

0 comments on commit aab828e

Please sign in to comment.