Skip to content

Commit

Permalink
Merge pull request #274 from Surax98/pending_fix
Browse files Browse the repository at this point in the history
Starting vk secret informers at bootstrap #263
  • Loading branch information
dciangot committed Aug 6, 2024
2 parents 8112afb + df6bc0d commit e3eb044
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/virtual-kubelet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ func main() {
resync,
)

scmInformer := scmInformerFactory.Core().V1().Secrets().Informer()
podInformer := podInformerFactory.Core().V1().Secrets().Informer()

podControllerConfig := node.PodControllerConfig{
PodClient: localClient.CoreV1(),
Provider: nodeProvider,
Expand All @@ -325,6 +328,8 @@ func main() {
// start informers ->
go podInformerFactory.Start(stopper)
go scmInformerFactory.Start(stopper)
go scmInformer.Run(stopper)
go podInformer.Run(stopper)

// start to sync and call list
if !cache.WaitForCacheSync(stopper, podInformerFactory.Core().V1().Pods().Informer().HasSynced) {
Expand Down

0 comments on commit e3eb044

Please sign in to comment.