Upgrade Client-go to 0.18.2
This commit is contained in:
parent
6b1158235e
commit
5f0b6fde92
25 changed files with 382 additions and 408 deletions
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredIngressRouteInformer(client versioned.Interface, namespace strin
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRoutes(namespace).List(options)
|
||||
return client.TraefikV1alpha1().IngressRoutes(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRoutes(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().IngressRoutes(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.IngressRoute{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredIngressRouteTCPInformer(client versioned.Interface, namespace st
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRouteTCPs(namespace).List(options)
|
||||
return client.TraefikV1alpha1().IngressRouteTCPs(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRouteTCPs(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().IngressRouteTCPs(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.IngressRouteTCP{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredIngressRouteUDPInformer(client versioned.Interface, namespace st
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRouteUDPs(namespace).List(options)
|
||||
return client.TraefikV1alpha1().IngressRouteUDPs(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().IngressRouteUDPs(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().IngressRouteUDPs(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.IngressRouteUDP{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredMiddlewareInformer(client versioned.Interface, namespace string,
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().Middlewares(namespace).List(options)
|
||||
return client.TraefikV1alpha1().Middlewares(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().Middlewares(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().Middlewares(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.Middleware{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredTLSOptionInformer(client versioned.Interface, namespace string,
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TLSOptions(namespace).List(options)
|
||||
return client.TraefikV1alpha1().TLSOptions(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TLSOptions(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().TLSOptions(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.TLSOption{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredTLSStoreInformer(client versioned.Interface, namespace string, r
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TLSStores(namespace).List(options)
|
||||
return client.TraefikV1alpha1().TLSStores(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TLSStores(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().TLSStores(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.TLSStore{},
|
||||
|
|
|
@ -27,6 +27,7 @@ THE SOFTWARE.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/containous/traefik/v2/pkg/provider/kubernetes/crd/generated/clientset/versioned"
|
||||
|
@ -69,13 +70,13 @@ func NewFilteredTraefikServiceInformer(client versioned.Interface, namespace str
|
|||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TraefikServices(namespace).List(options)
|
||||
return client.TraefikV1alpha1().TraefikServices(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.TraefikV1alpha1().TraefikServices(namespace).Watch(options)
|
||||
return client.TraefikV1alpha1().TraefikServices(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&traefikv1alpha1.TraefikService{},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue