{"modulePath":"github.com/stackpointcloud/kubernetes","version":"v1.3.3","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package populator\n\nPackage populator implements interfaces that monitor and keep the states of the desired\\_state\\_of\\_word in sync with the \"ground truth\" from informer.\n\n## Types\n\n```go\ntype DesiredStateOfWorldPopulator interface {\n\tRun(stopCh \u003c-chan struct{})\n}\n```\nDesiredStateOfWorldPopulator periodically verifies that the pods in the desired state of th world still exist, if not, it removes them. TODO: it also loops through the list of active pods and ensures that each one exists in the desired state of the world cache if it has volumes.\n\n```go\nfunc NewDesiredStateOfWorldPopulator(\n\tloopSleepDuration time.Duration,\n\tpodInformer framework.SharedInformer,\n\tdesiredStateOfWorld cache.DesiredStateOfWorld) DesiredStateOfWorldPopulator\n```\nNewDesiredStateOfWorldPopulator returns a new instance of DesiredStateOfWorldPopulator. loopSleepDuration - the amount of time the populator loop sleeps between\n\n\tsuccessive executions\n\npodManager - the kubelet podManager that is the source of truth for the pods\n\n\tthat exist on this host\n\ndesiredStateOfWorld - the cache to populate\n\n","path":"github.com/stackpointcloud/kubernetes/pkg/controller/volume/populator","name":"populator","synopsis":"Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the \"ground truth\" from informer.","isRedistributable":true}
