// proxyHealthCheckRequest - Factory method to instantiate the health check handler func proxyHealthCheckFactory() *proxyHC { glog.V(2).Infof("Initializing kube-proxy health checker") phc := &proxyHC{ serviceEndpointsMap: cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{}), serviceResponderMap: make(map[types.NamespacedName]serviceResponder), mutationRequestChannel: make(chan *proxyMutationRequest, 1024), listenerRequestChannel: make(chan *proxyListenerRequest, 1024), } return phc }
func newPodTracker() *podTracker { return &podTracker{cache.NewThreadSafeStore( cache.Indexers{}, cache.Indices{})} }
// NewInMemoryPool creates an InMemoryPool. func NewInMemoryPool() *InMemoryPool { return &InMemoryPool{ cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{})} }
func newPoolStore() *poolStore { return &poolStore{ cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{})} }
func newSSLCertTracker() *sslCertTracker { return &sslCertTracker{ cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{}), } }