@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -60,13 +61,13 @@ func NewFilteredIPAMBlockInformer(client versioned.Interface, resyncPeriod time.
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPAMBlocks().List(options)
|
||||
return client.NetworkV1alpha1().IPAMBlocks().List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPAMBlocks().Watch(options)
|
||||
return client.NetworkV1alpha1().IPAMBlocks().Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&networkv1alpha1.IPAMBlock{},
|
||||
|
||||
@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -60,13 +61,13 @@ func NewFilteredIPAMHandleInformer(client versioned.Interface, resyncPeriod time
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPAMHandles().List(options)
|
||||
return client.NetworkV1alpha1().IPAMHandles().List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPAMHandles().Watch(options)
|
||||
return client.NetworkV1alpha1().IPAMHandles().Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&networkv1alpha1.IPAMHandle{},
|
||||
|
||||
@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -60,13 +61,13 @@ func NewFilteredIPPoolInformer(client versioned.Interface, resyncPeriod time.Dur
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPPools().List(options)
|
||||
return client.NetworkV1alpha1().IPPools().List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().IPPools().Watch(options)
|
||||
return client.NetworkV1alpha1().IPPools().Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&networkv1alpha1.IPPool{},
|
||||
|
||||
@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -61,13 +62,13 @@ func NewFilteredNamespaceNetworkPolicyInformer(client versioned.Interface, names
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().NamespaceNetworkPolicies(namespace).List(options)
|
||||
return client.NetworkV1alpha1().NamespaceNetworkPolicies(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.NetworkV1alpha1().NamespaceNetworkPolicies(namespace).Watch(options)
|
||||
return client.NetworkV1alpha1().NamespaceNetworkPolicies(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&networkv1alpha1.NamespaceNetworkPolicy{},
|
||||
|
||||
Reference in New Issue
Block a user