Changes to accommodate client-go changes and kube vendor update

to v1.18.0

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2020-04-14 12:34:33 +05:30
committed by mergify[bot]
parent 4c96ad3c85
commit 34fc1d847e
1083 changed files with 50505 additions and 155846 deletions

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1
import (
"context"
time "time"
coordinationv1 "k8s.io/api/coordination/v1"
@ -61,13 +62,13 @@ func NewFilteredLeaseInformer(client kubernetes.Interface, namespace string, res
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CoordinationV1().Leases(namespace).List(options)
return client.CoordinationV1().Leases(namespace).List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CoordinationV1().Leases(namespace).Watch(options)
return client.CoordinationV1().Leases(namespace).Watch(context.TODO(), options)
},
},
&coordinationv1.Lease{},

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1beta1
import (
"context"
time "time"
coordinationv1beta1 "k8s.io/api/coordination/v1beta1"
@ -61,13 +62,13 @@ func NewFilteredLeaseInformer(client kubernetes.Interface, namespace string, res
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CoordinationV1beta1().Leases(namespace).List(options)
return client.CoordinationV1beta1().Leases(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CoordinationV1beta1().Leases(namespace).Watch(options)
return client.CoordinationV1beta1().Leases(namespace).Watch(context.TODO(), options)
},
},
&coordinationv1beta1.Lease{},