Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 171 for stopCh (0.15 sec)

  1. pilot/pkg/bootstrap/certcontroller.go

    					log.Errorf("error watching %v: %v", tlsOptions.KeyFile, err)
    				case <-stop:
    					return
    				}
    			}
    		}()
    		return nil
    	})
    	return nil
    }
    
    func (s *Server) reloadIstiodCert(watchCh <-chan struct{}, stopCh <-chan struct{}) {
    	for {
    		select {
    		case <-stopCh:
    			return
    		case <-watchCh:
    			if err := s.loadIstiodCert(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    		case <-ctx.Done():
    			return
    		}
    	}()
    	return nil
    }
    
    func (w *testWatchCache) Stop() {
    	close(w.stopCh)
    }
    
    func TestWatchCacheBasic(t *testing.T) {
    	store := newTestWatchCache(2, &cache.Indexers{})
    	defer store.Stop()
    
    	// Test Add/Update/Delete.
    	pod1 := makeTestPod("pod", 1)
    	if err := store.Add(pod1); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config.go

    		if !s.isPostStartHookRegistered(genericApiServerHookName) {
    			err := s.AddPostStartHook(genericApiServerHookName, func(context PostStartHookContext) error {
    				c.SharedInformerFactory.Start(context.StopCh)
    				return nil
    			})
    			if err != nil {
    				return nil, err
    			}
    		}
    		// TODO: Once we get rid of /healthz consider changing this to post-start-hook.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  4. pkg/volume/plugins.go

    	}
    
    	return nil, nil
    }
    
    func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) {
    	kletHost, ok := pm.Host.(KubeletVolumeHost)
    	if ok {
    		// start informer for CSIDriver
    		informerFactory := kletHost.GetInformerFactory()
    		informerFactory.Start(stopCh)
    		informerFactory.WaitForCacheSync(stopCh)
    	}
    }
    
    // NewPersistentVolumeRecyclerPodTemplate creates a template for a recycler
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. pilot/pkg/xds/delta.go

    				if err := s.processDeltaRequest(req, con); err != nil {
    					return err
    				}
    			} else {
    				// Remote side closed connection or error processing the request.
    				return <-con.ErrorCh()
    			}
    		case <-con.StopCh():
    			return nil
    		default:
    		}
    		// If there wasn't already a request, poll for requests and pushes. Note: if we have a huge
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    	// If attach/detach management is enabled, the manager will also check if
    	// volumes that should be attached are attached and volumes that should
    	// be detached are detached and trigger attach/detach operations as needed.
    	Run(stopCh <-chan struct{})
    
    	// StatesHasBeenSynced returns true only after syncStates process starts to sync
    	// states at least once after kubelet starts
    	StatesHasBeenSynced() bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. pkg/controlplane/instance.go

    		kubernetesServiceCtrl.Start(hookContext.StopCh)
    		return nil
    	})
    	s.ControlPlane.GenericAPIServer.AddPreShutdownHookOrDie("stop-kubernetes-service-controller", func() error {
    		kubernetesServiceCtrl.Stop()
    		return nil
    	})
    
    	if utilfeature.DefaultFeatureGate.Enabled(features.MultiCIDRServiceAllocator) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller.go

    	s.workloadHandlers = append(s.workloadHandlers, h)
    }
    
    // Run is used by some controllers to execute background jobs after init is done.
    func (s *Controller) Run(stopCh <-chan struct{}) {
    	s.edsQueue.Run(stopCh)
    }
    
    // HasSynced always returns true for SE
    func (s *Controller) HasSynced() bool {
    	return true
    }
    
    // Services list declarations of all services in the system
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. pkg/xds/server.go

    func (conn *Connection) InitializedCh() chan struct{} {
    	return conn.initialized
    }
    
    func (conn *Connection) PushCh() chan any {
    	return conn.pushChannel
    }
    
    func (conn *Connection) StopCh() chan struct{} {
    	return conn.stop
    }
    
    func (conn *Connection) ErrorCh() chan error {
    	return conn.errorChan
    }
    
    func (conn *Connection) StreamDone() <-chan struct{} {
    	return conn.stream.Context().Done()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. pkg/controller/endpointslice/endpointslice_controller.go

    	// topologyCache tracks the distribution of Nodes and endpoints across zones
    	// to enable TopologyAwareHints.
    	topologyCache *topologycache.TopologyCache
    }
    
    // Run will not return until stopCh is closed.
    func (c *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    
    	// Start events processing pipeline.
    	c.eventBroadcaster.StartLogging(klog.Infof)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top