mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-22 18:02:51 +08:00
c0c1344b1f
Automatic merge from submit-queue (batch tested with PRs 61400, 61048). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: allow specifying custom resync periods for certain informer types **What this PR does / why we need it**: This PR extends the informer code-generator to allow the consumer to specify a custom resync period for certain informer types and uses the default resync period if none is defined. **Special notes for your reviewer**: Example: ```go cs := clientset.NewForConfigOrDie(config) resyncConfig := externalversions.ResyncConfiguration{ &samplev1alpha1.Sample{}: 30 * time.Second, } informer := externalversions.NewSharedInformerFactory(cs, 2*time.Minute, externalversions.WithCustomResyncConfig(resyncConfig)) ``` **Release note**: ```release-note NONE ``` Kubernetes-commit: 7daaa826d291c1501a52177c3e14b00c503c8527 |
||
---|---|---|
.. | ||
client-gen | ||
conversion-gen | ||
deepcopy-gen | ||
defaulter-gen | ||
go-to-protobuf | ||
import-boss | ||
informer-gen | ||
lister-gen | ||
openapi-gen | ||
set-gen |