Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,432 for stopCh (0.22 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/factory.go

    				defer f.wg.Done()
    				informer.Run(stopCh)
    			}()
    			f.startedInformers[informerType] = true
    		}
    	}
    }
    
    func (f *sharedInformerFactory) Shutdown() {
    	f.lock.Lock()
    	f.shuttingDown = true
    	f.lock.Unlock()
    
    	// Will return immediately if there is nothing to wait for.
    	f.wg.Wait()
    }
    
    func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/kube/pod_controller.go

    	}
    }
    
    func (c *podController) Run(stop <-chan struct{}) {
    	go c.informer.Run(stop)
    	kube.WaitForCacheSync("pod controller", stop, c.informer.HasSynced)
    	c.q.Run(stop)
    }
    
    func (c *podController) HasSynced() bool {
    	return c.q.HasSynced()
    }
    
    func (c *podController) WaitForSync(stopCh <-chan struct{}) bool {
    	return cache.WaitForNamedCacheSync("echo", stopCh, c.informer.HasSynced)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 09 02:22:47 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. pkg/kubelet/cloudresource/cloud_request_manager.go

    	m.nodeAddressesErr = nil
    	m.nodeAddresses = addrs
    }
    
    // Run starts the cloud resource sync manager's sync loop.
    func (m *cloudResourceSyncManager) Run(stopCh <-chan struct{}) {
    	wait.Until(m.syncNodeAddresses, m.syncPeriod, stopCh)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 18:29:23 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. pkg/util/iptables/monitor_test.go

    		t.Errorf("failed to create iptables canaries: %v", err)
    	}
    
    	// If we close the stop channel, it should stop running
    	close(stopCh)
    
    	if err := waitForNoReload(&reloads, 2); err != nil {
    		t.Errorf("got unexpected number of reloads after stop: %v", err)
    	}
    	if !ensureNoChains(mfe) {
    		t.Errorf("canaries still exist after stopping monitor")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. pkg/kube/multicluster/secretcontroller_test.go

    	return t.component.clusters["config"]
    }
    
    func (t *testController) Run(stop chan struct{}) {
    	assert.NoError(t.t, t.controller.Run(stop))
    	t.client.RunAndWait(stop)
    }
    
    func TestListRemoteClusters(t *testing.T) {
    	stop := make(chan struct{})
    	c := buildTestController(t, false)
    	c.AddSecret("s0", "c0")
    	c.AddSecret("s1", "c1")
    	c.Run(stop)
    
    	// before sync
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/graph_builder.go

    	ignoredResources map[schema.GroupResource]struct{}
    }
    
    // monitor runs a Controller with a local stop channel.
    type monitor struct {
    	controller cache.Controller
    	store      cache.Store
    
    	// stopCh stops Controller. If stopCh is nil, the monitor is considered to be
    	// not yet started.
    	stopCh chan struct{}
    }
    
    // Run is intended to be called in a goroutine. Multiple calls of this is an
    // error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go

    		}
    	})
    }
    
    // StartMaxInFlightWatermarkMaintenance starts the goroutines to observe and maintain watermarks for max-in-flight
    // requests.
    func StartMaxInFlightWatermarkMaintenance(stopCh <-chan struct{}) {
    	startWatermarkMaintenance(watermark, stopCh)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 11:34:15 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/defaultservicecidr/default_servicecidr_controller.go

    	serviceCIDRsSynced  cache.InformerSynced
    
    	interval time.Duration
    }
    
    // Start will not return until the default ServiceCIDR exists or stopCh is closed.
    func (c *Controller) Start(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    	stopCh := ctx.Done()
    
    	c.eventBroadcaster = record.NewBroadcaster(record.WithContext(ctx))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/server_test.go

    	tlsConfig.GetConfigForClient = dynamicCertificateController.GetConfigForClient
    	tlsConfig.GetCertificate = func(*tls.ClientHelloInfo) (*tls.Certificate, error) { return nil, fmt.Errorf("positive failure") }
    
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    	server := &http.Server{
    		Handler: http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    			w.WriteHeader(http.StatusOK)
    		}),
    		MaxHeaderBytes: 1 << 20,
    		TLSConfig:      tlsConfig,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    	LoopbackClientConfig *restclient.Config
    	// StopCh is the channel that will be closed when the server stops.
    	//
    	// Deprecated: use the PostStartHookContext itself instead, it contains a context that
    	// gets cancelled when the server stops. StopCh keeps getting provided for existing code.
    	StopCh <-chan struct{}
    	// Context gets cancelled when the server stops.
    	context.Context
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top