Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add resync period for each resource #157

Closed
wants to merge 1 commit into from

Conversation

gxthrj
Copy link
Contributor

@gxthrj gxthrj commented Jan 6, 2021

Fix: #137

@@ -122,7 +122,7 @@ the apisix cluster and others are created`,

kubeClientSet := kube.GetKubeClient()
apisixClientset := kube.GetApisixClient()
sharedInformerFactory := api6Informers.NewSharedInformerFactory(apisixClientset, 0)
sharedInformerFactory := api6Informers.NewSharedInformerFactory(apisixClientset, 6.*time.Hour)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the resync_interval option here rather than hardcoding.

cache.ResourceEventHandlerFuncs{
AddFunc: controller.addFunc,
UpdateFunc: controller.updateFunc,
DeleteFunc: controller.deleteFunc,
})
}, 30.*time.Minute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@gxthrj
Copy link
Contributor Author

gxthrj commented Jan 7, 2021

Close this pr, have been commit in #155

@gxthrj gxthrj closed this Jan 7, 2021
@gxthrj gxthrj deleted the kv/loop branch January 7, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The ingress controller requires the reconcile loop
2 participants