Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,948 for waits (0.04 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/kubelet/eviction/threshold_notifier_linux.go

    			return
    		}
    		eventCh <- struct{}{}
    	}
    }
    
    // wait waits up to notifierRefreshInterval for an event on the Epoll FD for the
    // eventfd we are concerned about.  It returns an error if one occurs, and true
    // if the consumer should read from the eventfd.
    func wait(epfd, eventfd int, timeout time.Duration) (bool, error) {
    	events := make([]unix.EpollEvent, numFdEvents+1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 01 21:59:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go

    		// kick off a goroutine (receiver) here to wait for the sender (goroutine executing ResultFunc)
    		// to send the result and then log details of the result.
    		defer func() {
    			go func() {
    				timedOutAt := time.Now()
    
    				var result *result
    				select {
    				case result = <-resultCh:
    				case <-time.After(postTimeoutWait):
    					// we will not wait forever, if we are here then we know that some sender
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 14:20:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  4. cluster/gce/gci/flexvolume_node_setup.sh

      echo
      usage
    fi
    
    # Unmounts a mount point lazily. If a mount point does not exist, continue silently,
    # and without error.
    umount_silent() {
      umount -l "$1" &> /dev/null || /bin/true
    }
    
    # Waits for kubelet to restart for 1 minute.
    kubelet_wait() {
      timeout=60
      healthz_port=10248
      until [[ $timeout -eq 0 ]]; do
        printf "."
        if [[ $( curl -s http://localhost:${healthz_port}/healthz ) == "ok" ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 13 17:58:51 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top