sample-controller/vendor/k8s.io
Kubernetes Publisher c0c1344b1f 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
```

Kubernetes-commit: 7daaa826d291c1501a52177c3e14b00c503c8527
2018-04-06 23:53:23 +00:00
..
api Merge pull request #61800 from rithujohn191/remove-gopass 2018-04-06 12:04:33 +00:00
apimachinery Merge pull request #60021 from nikhita/sample-controller-subresources 2018-04-06 12:05:08 +00:00
client-go Merge pull request #61400 from natronq/master 2018-04-06 23:53:23 +00:00
code-generator Merge pull request #61400 from natronq/master 2018-04-06 23:53:23 +00:00
kube-openapi Merge pull request #57059 from ericchiang/client-go/remove-openapi-import 2018-01-12 12:06:32 +00:00