mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-08-03 00:00:02 +08:00
Update generated code
Kubernetes-commit: f4b8276001c5c895ae0f22c7f0ad1d987375072d
This commit is contained in:
committed by
Kubernetes Publisher
parent
93d63d51fb
commit
282266c60f
@@ -51,7 +51,7 @@ func (f *genericInformer) Lister() cache.GenericLister {
|
|||||||
// TODO extend this to unknown resources with a client pool
|
// TODO extend this to unknown resources with a client pool
|
||||||
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
|
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
|
||||||
switch resource {
|
switch resource {
|
||||||
// Group=Samplecontroller, Version=V1alpha1
|
// Group=samplecontroller.k8s.io, Version=v1alpha1
|
||||||
case v1alpha1.SchemeGroupVersion.WithResource("foos"):
|
case v1alpha1.SchemeGroupVersion.WithResource("foos"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Samplecontroller().V1alpha1().Foos().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Samplecontroller().V1alpha1().Foos().Informer()}, nil
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user