refact(deps): bump k8s and client-go deps to version v0.20.2 (#294)

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
Prateek Pandey 2021-03-31 16:43:42 +05:30 committed by GitHub
parent 533e17a9aa
commit b1aa6ab51a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2196 changed files with 306727 additions and 251810 deletions

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1
import (
"context"
time "time"
rbacv1 "k8s.io/api/rbac/v1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleInformer(client kubernetes.Interface, resyncPeriod ti
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().ClusterRoles().List(options)
return client.RbacV1().ClusterRoles().List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().ClusterRoles().Watch(options)
return client.RbacV1().ClusterRoles().Watch(context.TODO(), options)
},
},
&rbacv1.ClusterRole{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1
import (
"context"
time "time"
rbacv1 "k8s.io/api/rbac/v1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleBindingInformer(client kubernetes.Interface, resyncPe
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().ClusterRoleBindings().List(options)
return client.RbacV1().ClusterRoleBindings().List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().ClusterRoleBindings().Watch(options)
return client.RbacV1().ClusterRoleBindings().Watch(context.TODO(), options)
},
},
&rbacv1.ClusterRoleBinding{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1
import (
"context"
time "time"
rbacv1 "k8s.io/api/rbac/v1"
@ -61,13 +62,13 @@ func NewFilteredRoleInformer(client kubernetes.Interface, namespace string, resy
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().Roles(namespace).List(options)
return client.RbacV1().Roles(namespace).List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().Roles(namespace).Watch(options)
return client.RbacV1().Roles(namespace).Watch(context.TODO(), options)
},
},
&rbacv1.Role{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1
import (
"context"
time "time"
rbacv1 "k8s.io/api/rbac/v1"
@ -61,13 +62,13 @@ func NewFilteredRoleBindingInformer(client kubernetes.Interface, namespace strin
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().RoleBindings(namespace).List(options)
return client.RbacV1().RoleBindings(namespace).List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1().RoleBindings(namespace).Watch(options)
return client.RbacV1().RoleBindings(namespace).Watch(context.TODO(), options)
},
},
&rbacv1.RoleBinding{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1alpha1
import (
"context"
time "time"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleInformer(client kubernetes.Interface, resyncPeriod ti
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().ClusterRoles().List(options)
return client.RbacV1alpha1().ClusterRoles().List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().ClusterRoles().Watch(options)
return client.RbacV1alpha1().ClusterRoles().Watch(context.TODO(), options)
},
},
&rbacv1alpha1.ClusterRole{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1alpha1
import (
"context"
time "time"
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleBindingInformer(client kubernetes.Interface, resyncPe
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().ClusterRoleBindings().List(options)
return client.RbacV1alpha1().ClusterRoleBindings().List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().ClusterRoleBindings().Watch(options)
return client.RbacV1alpha1().ClusterRoleBindings().Watch(context.TODO(), options)
},
},
&rbacv1alpha1.ClusterRoleBinding{},

View file

@ -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{},

View file

@ -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 NewFilteredRoleBindingInformer(client kubernetes.Interface, namespace strin
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().RoleBindings(namespace).List(options)
return client.RbacV1alpha1().RoleBindings(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1alpha1().RoleBindings(namespace).Watch(options)
return client.RbacV1alpha1().RoleBindings(namespace).Watch(context.TODO(), options)
},
},
&rbacv1alpha1.RoleBinding{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1beta1
import (
"context"
time "time"
rbacv1beta1 "k8s.io/api/rbac/v1beta1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleInformer(client kubernetes.Interface, resyncPeriod ti
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().ClusterRoles().List(options)
return client.RbacV1beta1().ClusterRoles().List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().ClusterRoles().Watch(options)
return client.RbacV1beta1().ClusterRoles().Watch(context.TODO(), options)
},
},
&rbacv1beta1.ClusterRole{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1beta1
import (
"context"
time "time"
rbacv1beta1 "k8s.io/api/rbac/v1beta1"
@ -60,13 +61,13 @@ func NewFilteredClusterRoleBindingInformer(client kubernetes.Interface, resyncPe
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().ClusterRoleBindings().List(options)
return client.RbacV1beta1().ClusterRoleBindings().List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().ClusterRoleBindings().Watch(options)
return client.RbacV1beta1().ClusterRoleBindings().Watch(context.TODO(), options)
},
},
&rbacv1beta1.ClusterRoleBinding{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1beta1
import (
"context"
time "time"
rbacv1beta1 "k8s.io/api/rbac/v1beta1"
@ -61,13 +62,13 @@ func NewFilteredRoleInformer(client kubernetes.Interface, namespace string, resy
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().Roles(namespace).List(options)
return client.RbacV1beta1().Roles(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().Roles(namespace).Watch(options)
return client.RbacV1beta1().Roles(namespace).Watch(context.TODO(), options)
},
},
&rbacv1beta1.Role{},

View file

@ -19,6 +19,7 @@ limitations under the License.
package v1beta1
import (
"context"
time "time"
rbacv1beta1 "k8s.io/api/rbac/v1beta1"
@ -61,13 +62,13 @@ func NewFilteredRoleBindingInformer(client kubernetes.Interface, namespace strin
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().RoleBindings(namespace).List(options)
return client.RbacV1beta1().RoleBindings(namespace).List(context.TODO(), options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.RbacV1beta1().RoleBindings(namespace).Watch(options)
return client.RbacV1beta1().RoleBindings(namespace).Watch(context.TODO(), options)
},
},
&rbacv1beta1.RoleBinding{},