Files
kubernetes/pkg
Kubernetes Submit Queue 7daaa826d2 Merge pull request #61400 from natronq/master
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
```
2018-04-06 14:47:05 -07:00
..
2018-03-13 15:06:38 +08:00
2018-02-16 13:43:01 -08:00
2018-04-05 23:35:14 +02:00
2018-04-05 14:05:53 +02:00
2018-04-06 13:31:59 +02:00
2018-04-06 11:00:50 +05:30
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-04-02 17:44:04 -07:00
2018-02-16 13:43:01 -08:00
2018-01-15 23:17:19 +08:00
2018-03-13 17:20:16 +08:00