Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,673 for waits (0.05 sec)

  1. pkg/test/framework/components/echo/kube/workload_manager.go

    	// Run the pod controller.
    	go m.podController.Run(m.stopCh)
    
    	// Wait for the cache to sync.
    	if !m.podController.WaitForSync(m.stopCh) {
    		return fmt.Errorf(
    			"failed syncing cache for echo %s/%s: controller stopping",
    			m.cfg.Namespace.Name(),
    			m.cfg.Service)
    	}
    
    	// Wait until all pods are ready.
    	_, err := m.WaitForReadyWorkloads()
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. pkg/controller/volume/pvcprotection/pvc_protection_controller.go

    	// b) was force-deleted.
    	//
    	// It's now just waiting for garbage collection. We could wait
    	// for it to actually get removed, but that may be blocked by
    	// finalizers for the pod and thus get delayed.
    	//
    	// Worse, it is possible that there is a cyclic dependency
    	// (pod finalizer waits for PVC to get removed, PVC protection
    	// controller waits for pod to get removed).  By considering
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. internal/s3select/message.go

    	// closes `doneCh` to indicate to caller to also exit.
    	//
    	// 2. If caller (Evaluate()) has an error, it sends an error
    	// message and waits for this go-routine to quit in
    	// FinishWithError()
    	//
    	// 3. If caller is done, it waits for this go-routine to exit
    	// in Finish()
    
    	quitFlag := false
    	for !quitFlag {
    		select {
    		case data := <-writer.errCh:
    			quitFlag = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 30 15:26:43 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  4. src/net/http/transport_dial_test.go

    	<-rt.done
    
    	if rt.err != nil {
    		return
    	}
    	rt.reqBody.Close()
    	io.ReadAll(rt.res.Body)
    	rt.res.Body.Close()
    	rt.t.Logf("RoundTrip %v: closed request body", rt.roundTripID)
    }
    
    // wantDial waits for the Transport to start a Dial.
    func (dt *transportDialTester) wantDial() *transportDialTesterConn {
    	c := <-dt.dials
    	c.connID = dt.dialCount
    	dt.dialCount++
    	dt.t.Logf("Dial %v: started", c.connID)
    	return c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/svn.go

    	if stderr.Len() > 0 {
    		stderrFrag = "\n" + stderr.String()
    	}
    	h.logger.Printf("%v: %s%s", cmd, errFrag, stderrFrag)
    }
    
    // Close stops accepting new svn:// connections and terminates the existing
    // ones, then waits for the 'svnserve' subprocesses to complete.
    func (h *svnHandler) Close() error {
    	h.listenOnce.Do(func() {})
    	if h.s == nil {
    		return nil
    	}
    
    	var err error
    	s := <-h.s
    	s.closing = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 5K bytes
    - Viewed (0)
  6. pkg/kube/kclient/crdwatcher.go

    	c.mutex.Unlock()
    	kube.WaitForCacheSync("crd watcher", stop, c.crds.HasSynced)
    	c.queue.Run(stop)
    	c.crds.ShutdownHandlers()
    }
    
    // WaitForCRD waits until the request CRD exists, and returns true on success. A false return value
    // indicates the CRD does not exist but the wait failed or was canceled.
    // This is useful to conditionally enable controllers based on CRDs being created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. pkg/kubelet/runonce.go

    	}
    	if len(failedPods) > 0 {
    		return results, fmt.Errorf("error running pods: %v", failedPods)
    	}
    	klog.InfoS("Pods started", "numPods", len(pods))
    	return results, err
    }
    
    // runPod runs a single pod and waits until all containers are running.
    func (kl *Kubelet) runPod(ctx context.Context, pod *v1.Pod, retryDelay time.Duration) error {
    	var isTerminal bool
    	delay := retryDelay
    	retry := 0
    	for !isTerminal {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. pkg/kube/informerfactory/factory.go

    		if !cache.WaitForCacheSync(stopCh, informer.HasSynced) {
    			return false
    		}
    	}
    	return true
    }
    
    func (f *informerFactory) Shutdown() {
    	// Will return immediately if there is nothing to wait for.
    	defer f.wg.Wait()
    
    	f.lock.Lock()
    	defer f.lock.Unlock()
    	f.shuttingDown = true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. pkg/kube/kubetypes/types.go

    	KnownOrCallback(s schema.GroupVersionResource, f func(stop <-chan struct{})) bool
    	// WaitForCRD waits until the request CRD exists, and returns true on success. A false return value
    	// indicates the CRD does not exist but the wait failed or was canceled.
    	// This is useful to conditionally enable controllers based on CRDs being created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/context/example_test.go

    // This example uses AfterFunc to define a function which waits on a sync.Cond,
    // stopping the wait when a context is canceled.
    func ExampleAfterFunc_cond() {
    	waitOnCond := func(ctx context.Context, cond *sync.Cond, conditionMet func() bool) error {
    		stopf := context.AfterFunc(ctx, func() {
    			// We need to acquire cond.L here to be sure that the Broadcast
    			// below won't occur before the call to Wait, which would result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top