@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha2
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -61,13 +62,13 @@ func NewFilteredServicePolicyInformer(client versioned.Interface, namespace stri
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.ServicemeshV1alpha2().ServicePolicies(namespace).List(options)
|
||||
return client.ServicemeshV1alpha2().ServicePolicies(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.ServicemeshV1alpha2().ServicePolicies(namespace).Watch(options)
|
||||
return client.ServicemeshV1alpha2().ServicePolicies(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&servicemeshv1alpha2.ServicePolicy{},
|
||||
|
||||
Reference in New Issue
Block a user