5
vendor/k8s.io/client-go/informers/rbac/v1alpha1/role.go
generated
vendored
5
vendor/k8s.io/client-go/informers/rbac/v1alpha1/role.go
generated
vendored
@@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
|
||||
@@ -61,13 +62,13 @@ func NewFilteredRoleInformer(client kubernetes.Interface, namespace string, resy
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().Roles(namespace).List(options)
|
||||
return client.RbacV1alpha1().Roles(namespace).List(context.TODO(), options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().Roles(namespace).Watch(options)
|
||||
return client.RbacV1alpha1().Roles(namespace).Watch(context.TODO(), options)
|
||||
},
|
||||
},
|
||||
&rbacv1alpha1.Role{},
|
||||
|
||||
Reference in New Issue
Block a user