func NewFilteredClusterPodAssignmentRuleInformer(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.AssignmentsV1alpha1().ClusterPodAssignmentRules().List(options)
			},
			WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.AssignmentsV1alpha1().ClusterPodAssignmentRules().Watch(options)
			},
		},
		&assignmentsv1alpha1.ClusterPodAssignmentRule{},
		resyncPeriod,
		indexers,
	)
}
NewFilteredClusterPodAssignmentRuleInformer constructs a new informer for ClusterPodAssignmentRule 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.
package v1alpha1
import (
	time "time"
	assignmentsv1alpha1 "github.com/domoinc/kube-valet/pkg/apis/assignments/v1alpha1"
	versioned "github.com/domoinc/kube-valet/pkg/client/clientset/versioned"
	internalinterfaces "github.com/domoinc/kube-valet/pkg/client/informers/externalversions/internalinterfaces"
	v1alpha1 "github.com/domoinc/kube-valet/pkg/client/listers/assignments/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"
)
type ClusterPodAssignmentRuleInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() v1alpha1.ClusterPodAssignmentRuleLister
}
type clusterPodAssignmentRuleInformer struct {
	factory          internalinterfaces.SharedInformerFactory
	tweakListOptions internalinterfaces.TweakListOptionsFunc
}
func NewClusterPodAssignmentRuleInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
	return NewFilteredClusterPodAssignmentRuleInformer(client, resyncPeriod, indexers, nil)
}