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 v1beta2
import (
"context"
time "time"
appsv1beta2 "k8s.io/api/apps/v1beta2"
@ -61,13 +62,13 @@ func NewFilteredControllerRevisionInformer(client kubernetes.Interface, namespac
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().ControllerRevisions(namespace).List(options)
return client.AppsV1beta2().ControllerRevisions(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().ControllerRevisions(namespace).Watch(options)
return client.AppsV1beta2().ControllerRevisions(namespace).Watch(context.TODO(), options)
},
},
&appsv1beta2.ControllerRevision{},

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1beta2
import (
"context"
time "time"
appsv1beta2 "k8s.io/api/apps/v1beta2"
@ -61,13 +62,13 @@ func NewFilteredDaemonSetInformer(client kubernetes.Interface, namespace string,
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().DaemonSets(namespace).List(options)
return client.AppsV1beta2().DaemonSets(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().DaemonSets(namespace).Watch(options)
return client.AppsV1beta2().DaemonSets(namespace).Watch(context.TODO(), options)
},
},
&appsv1beta2.DaemonSet{},

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1beta2
import (
"context"
time "time"
appsv1beta2 "k8s.io/api/apps/v1beta2"
@ -61,13 +62,13 @@ func NewFilteredDeploymentInformer(client kubernetes.Interface, namespace string
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().Deployments(namespace).List(options)
return client.AppsV1beta2().Deployments(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().Deployments(namespace).Watch(options)
return client.AppsV1beta2().Deployments(namespace).Watch(context.TODO(), options)
},
},
&appsv1beta2.Deployment{},

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1beta2
import (
"context"
time "time"
appsv1beta2 "k8s.io/api/apps/v1beta2"
@ -61,13 +62,13 @@ func NewFilteredReplicaSetInformer(client kubernetes.Interface, namespace string
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().ReplicaSets(namespace).List(options)
return client.AppsV1beta2().ReplicaSets(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().ReplicaSets(namespace).Watch(options)
return client.AppsV1beta2().ReplicaSets(namespace).Watch(context.TODO(), options)
},
},
&appsv1beta2.ReplicaSet{},

View File

@ -19,6 +19,7 @@ limitations under the License.
package v1beta2
import (
"context"
time "time"
appsv1beta2 "k8s.io/api/apps/v1beta2"
@ -61,13 +62,13 @@ func NewFilteredStatefulSetInformer(client kubernetes.Interface, namespace strin
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().StatefulSets(namespace).List(options)
return client.AppsV1beta2().StatefulSets(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.AppsV1beta2().StatefulSets(namespace).Watch(options)
return client.AppsV1beta2().StatefulSets(namespace).Watch(context.TODO(), options)
},
},
&appsv1beta2.StatefulSet{},