use istio client-go library instead of knative (#1661)
use istio client-go library instead of knative bump kubernetes dependency version change code coverage to codecov
This commit is contained in:
30
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/interface.gen.go
generated
vendored
Normal file
30
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/interface.gen.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package rbac
|
||||
|
||||
import (
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1"
|
||||
)
|
||||
|
||||
// Interface provides access to each of this group's versions.
|
||||
type Interface interface {
|
||||
// V1alpha1 provides access to shared informers for resources in V1alpha1.
|
||||
V1alpha1() v1alpha1.Interface
|
||||
}
|
||||
|
||||
type group struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
namespace string
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
}
|
||||
|
||||
// New returns a new Interface.
|
||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
||||
return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
||||
}
|
||||
|
||||
// V1alpha1 returns a new v1alpha1.Interface.
|
||||
func (g *group) V1alpha1() v1alpha1.Interface {
|
||||
return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
|
||||
}
|
||||
72
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/clusterrbacconfig.gen.go
generated
vendored
Normal file
72
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/clusterrbacconfig.gen.go
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
time "time"
|
||||
|
||||
rbacv1alpha1 "istio.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||
versioned "istio.io/client-go/pkg/clientset/versioned"
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "istio.io/client-go/pkg/listers/rbac/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// ClusterRbacConfigInformer provides access to a shared informer and lister for
|
||||
// ClusterRbacConfigs.
|
||||
type ClusterRbacConfigInformer interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
Lister() v1alpha1.ClusterRbacConfigLister
|
||||
}
|
||||
|
||||
type clusterRbacConfigInformer struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
}
|
||||
|
||||
// NewClusterRbacConfigInformer constructs a new informer for ClusterRbacConfig type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewClusterRbacConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
||||
return NewFilteredClusterRbacConfigInformer(client, resyncPeriod, indexers, nil)
|
||||
}
|
||||
|
||||
// NewFilteredClusterRbacConfigInformer constructs a new informer for ClusterRbacConfig type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewFilteredClusterRbacConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
||||
return cache.NewSharedIndexInformer(
|
||||
&cache.ListWatch{
|
||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ClusterRbacConfigs().List(options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ClusterRbacConfigs().Watch(options)
|
||||
},
|
||||
},
|
||||
&rbacv1alpha1.ClusterRbacConfig{},
|
||||
resyncPeriod,
|
||||
indexers,
|
||||
)
|
||||
}
|
||||
|
||||
func (f *clusterRbacConfigInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
||||
return NewFilteredClusterRbacConfigInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
||||
}
|
||||
|
||||
func (f *clusterRbacConfigInformer) Informer() cache.SharedIndexInformer {
|
||||
return f.factory.InformerFor(&rbacv1alpha1.ClusterRbacConfig{}, f.defaultInformer)
|
||||
}
|
||||
|
||||
func (f *clusterRbacConfigInformer) Lister() v1alpha1.ClusterRbacConfigLister {
|
||||
return v1alpha1.NewClusterRbacConfigLister(f.Informer().GetIndexer())
|
||||
}
|
||||
50
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/interface.gen.go
generated
vendored
Normal file
50
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/interface.gen.go
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// Interface provides access to all the informers in this group version.
|
||||
type Interface interface {
|
||||
// ClusterRbacConfigs returns a ClusterRbacConfigInformer.
|
||||
ClusterRbacConfigs() ClusterRbacConfigInformer
|
||||
// RbacConfigs returns a RbacConfigInformer.
|
||||
RbacConfigs() RbacConfigInformer
|
||||
// ServiceRoles returns a ServiceRoleInformer.
|
||||
ServiceRoles() ServiceRoleInformer
|
||||
// ServiceRoleBindings returns a ServiceRoleBindingInformer.
|
||||
ServiceRoleBindings() ServiceRoleBindingInformer
|
||||
}
|
||||
|
||||
type version struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
namespace string
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
}
|
||||
|
||||
// New returns a new Interface.
|
||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
||||
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
||||
}
|
||||
|
||||
// ClusterRbacConfigs returns a ClusterRbacConfigInformer.
|
||||
func (v *version) ClusterRbacConfigs() ClusterRbacConfigInformer {
|
||||
return &clusterRbacConfigInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
|
||||
}
|
||||
|
||||
// RbacConfigs returns a RbacConfigInformer.
|
||||
func (v *version) RbacConfigs() RbacConfigInformer {
|
||||
return &rbacConfigInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
|
||||
}
|
||||
|
||||
// ServiceRoles returns a ServiceRoleInformer.
|
||||
func (v *version) ServiceRoles() ServiceRoleInformer {
|
||||
return &serviceRoleInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
|
||||
}
|
||||
|
||||
// ServiceRoleBindings returns a ServiceRoleBindingInformer.
|
||||
func (v *version) ServiceRoleBindings() ServiceRoleBindingInformer {
|
||||
return &serviceRoleBindingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
|
||||
}
|
||||
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/rbacconfig.gen.go
generated
vendored
Normal file
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/rbacconfig.gen.go
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
time "time"
|
||||
|
||||
rbacv1alpha1 "istio.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||
versioned "istio.io/client-go/pkg/clientset/versioned"
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "istio.io/client-go/pkg/listers/rbac/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// RbacConfigInformer provides access to a shared informer and lister for
|
||||
// RbacConfigs.
|
||||
type RbacConfigInformer interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
Lister() v1alpha1.RbacConfigLister
|
||||
}
|
||||
|
||||
type rbacConfigInformer struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
namespace string
|
||||
}
|
||||
|
||||
// NewRbacConfigInformer constructs a new informer for RbacConfig type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewRbacConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
||||
return NewFilteredRbacConfigInformer(client, namespace, resyncPeriod, indexers, nil)
|
||||
}
|
||||
|
||||
// NewFilteredRbacConfigInformer constructs a new informer for RbacConfig type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewFilteredRbacConfigInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
||||
return cache.NewSharedIndexInformer(
|
||||
&cache.ListWatch{
|
||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().RbacConfigs(namespace).List(options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().RbacConfigs(namespace).Watch(options)
|
||||
},
|
||||
},
|
||||
&rbacv1alpha1.RbacConfig{},
|
||||
resyncPeriod,
|
||||
indexers,
|
||||
)
|
||||
}
|
||||
|
||||
func (f *rbacConfigInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
||||
return NewFilteredRbacConfigInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
||||
}
|
||||
|
||||
func (f *rbacConfigInformer) Informer() cache.SharedIndexInformer {
|
||||
return f.factory.InformerFor(&rbacv1alpha1.RbacConfig{}, f.defaultInformer)
|
||||
}
|
||||
|
||||
func (f *rbacConfigInformer) Lister() v1alpha1.RbacConfigLister {
|
||||
return v1alpha1.NewRbacConfigLister(f.Informer().GetIndexer())
|
||||
}
|
||||
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/servicerole.gen.go
generated
vendored
Normal file
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/servicerole.gen.go
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
time "time"
|
||||
|
||||
rbacv1alpha1 "istio.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||
versioned "istio.io/client-go/pkg/clientset/versioned"
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "istio.io/client-go/pkg/listers/rbac/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// ServiceRoleInformer provides access to a shared informer and lister for
|
||||
// ServiceRoles.
|
||||
type ServiceRoleInformer interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
Lister() v1alpha1.ServiceRoleLister
|
||||
}
|
||||
|
||||
type serviceRoleInformer struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
namespace string
|
||||
}
|
||||
|
||||
// NewServiceRoleInformer constructs a new informer for ServiceRole type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewServiceRoleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
||||
return NewFilteredServiceRoleInformer(client, namespace, resyncPeriod, indexers, nil)
|
||||
}
|
||||
|
||||
// NewFilteredServiceRoleInformer constructs a new informer for ServiceRole type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewFilteredServiceRoleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
||||
return cache.NewSharedIndexInformer(
|
||||
&cache.ListWatch{
|
||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ServiceRoles(namespace).List(options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ServiceRoles(namespace).Watch(options)
|
||||
},
|
||||
},
|
||||
&rbacv1alpha1.ServiceRole{},
|
||||
resyncPeriod,
|
||||
indexers,
|
||||
)
|
||||
}
|
||||
|
||||
func (f *serviceRoleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
||||
return NewFilteredServiceRoleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
||||
}
|
||||
|
||||
func (f *serviceRoleInformer) Informer() cache.SharedIndexInformer {
|
||||
return f.factory.InformerFor(&rbacv1alpha1.ServiceRole{}, f.defaultInformer)
|
||||
}
|
||||
|
||||
func (f *serviceRoleInformer) Lister() v1alpha1.ServiceRoleLister {
|
||||
return v1alpha1.NewServiceRoleLister(f.Informer().GetIndexer())
|
||||
}
|
||||
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/servicerolebinding.gen.go
generated
vendored
Normal file
73
vendor/istio.io/client-go/pkg/informers/externalversions/rbac/v1alpha1/servicerolebinding.gen.go
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Code generated by informer-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
time "time"
|
||||
|
||||
rbacv1alpha1 "istio.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||
versioned "istio.io/client-go/pkg/clientset/versioned"
|
||||
internalinterfaces "istio.io/client-go/pkg/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "istio.io/client-go/pkg/listers/rbac/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// ServiceRoleBindingInformer provides access to a shared informer and lister for
|
||||
// ServiceRoleBindings.
|
||||
type ServiceRoleBindingInformer interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
Lister() v1alpha1.ServiceRoleBindingLister
|
||||
}
|
||||
|
||||
type serviceRoleBindingInformer struct {
|
||||
factory internalinterfaces.SharedInformerFactory
|
||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
||||
namespace string
|
||||
}
|
||||
|
||||
// NewServiceRoleBindingInformer constructs a new informer for ServiceRoleBinding type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewServiceRoleBindingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
||||
return NewFilteredServiceRoleBindingInformer(client, namespace, resyncPeriod, indexers, nil)
|
||||
}
|
||||
|
||||
// NewFilteredServiceRoleBindingInformer constructs a new informer for ServiceRoleBinding type.
|
||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
||||
// one. This reduces memory footprint and number of connections to the server.
|
||||
func NewFilteredServiceRoleBindingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
||||
return cache.NewSharedIndexInformer(
|
||||
&cache.ListWatch{
|
||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ServiceRoleBindings(namespace).List(options)
|
||||
},
|
||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||
if tweakListOptions != nil {
|
||||
tweakListOptions(&options)
|
||||
}
|
||||
return client.RbacV1alpha1().ServiceRoleBindings(namespace).Watch(options)
|
||||
},
|
||||
},
|
||||
&rbacv1alpha1.ServiceRoleBinding{},
|
||||
resyncPeriod,
|
||||
indexers,
|
||||
)
|
||||
}
|
||||
|
||||
func (f *serviceRoleBindingInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
||||
return NewFilteredServiceRoleBindingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
||||
}
|
||||
|
||||
func (f *serviceRoleBindingInformer) Informer() cache.SharedIndexInformer {
|
||||
return f.factory.InformerFor(&rbacv1alpha1.ServiceRoleBinding{}, f.defaultInformer)
|
||||
}
|
||||
|
||||
func (f *serviceRoleBindingInformer) Lister() v1alpha1.ServiceRoleBindingLister {
|
||||
return v1alpha1.NewServiceRoleBindingLister(f.Informer().GetIndexer())
|
||||
}
|
||||
Reference in New Issue
Block a user