Skip to content

Commit

Permalink
Pro-actively mark the ready flag resync as done.
Browse files Browse the repository at this point in the history
  • Loading branch information
fasaxc committed Nov 27, 2017
1 parent 119c3c8 commit c221c64
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 c221c64

Please sign in to comment.