Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for lastErr (0.31 sec)

  1. pkg/controlplane/apiserver/config.go

    	lastErr error,
    ) {
    	genericConfig = genericapiserver.NewConfig(legacyscheme.Codecs)
    	genericConfig.MergedResourceConfig = resourceConfig
    
    	if lastErr = s.GenericServerRunOptions.ApplyTo(genericConfig); lastErr != nil {
    		return
    	}
    
    	if lastErr = s.SecureServing.ApplyTo(&genericConfig.SecureServing, &genericConfig.LoopbackClientConfig); lastErr != nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/apiclient/wait.go

    		true, func(_ context.Context) (bool, error) {
    			hash, err := getStaticPodSingleHash(w.client, nodeName, component)
    			if err != nil {
    				lastErr = err
    				return false, nil
    			}
    			// Set lastErr to nil to be able to later distinguish between getStaticPodSingleHash() and timeout errors
    			lastErr = nil
    			// We should continue polling until the UID changes
    			if hash == previousHash {
    				return false, nil
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/lif/lif.go

    	return syscall.Close(int(ep.s))
    }
    
    func newEndpoints(af int) ([]endpoint, error) {
    	var lastErr error
    	var eps []endpoint
    	afs := []int{syscall.AF_INET, syscall.AF_INET6}
    	if af != syscall.AF_UNSPEC {
    		afs = []int{af}
    	}
    	for _, af := range afs {
    		s, err := syscall.Socket(af, syscall.SOCK_DGRAM, 0)
    		if err != nil {
    			lastErr = err
    			continue
    		}
    		eps = append(eps, endpoint{af: af, s: uintptr(s)})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 950 bytes
    - Viewed (0)
  4. internal/bucket/bandwidth/reader.go

    	BucketOptions
    	HeaderSize int
    }
    
    // Read implements a throttled read
    func (r *MonitoredReader) Read(buf []byte) (n int, err error) {
    	if r.throttle == nil {
    		return r.r.Read(buf)
    	}
    	if r.lastErr != nil {
    		err = r.lastErr
    		return
    	}
    	b := r.throttle.Burst()  // maximum available tokens
    	need := len(buf)         // number of bytes requested by caller
    	hdr := r.opts.HeaderSize // remaining header bytes
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/runtime/runtime.go

    			if err := runtime.impl.RemovePodSandbox(ctx, runtime.runtimeService, container); err != nil {
    				lastErr = errors.Wrapf(err, "failed to remove pod %s", container)
    				cancel()
    				continue
    			}
    			cancel()
    
    			lastErr = nil
    			break
    		}
    
    		if lastErr != nil {
    			errs = append(errs, lastErr)
    		}
    	}
    	return errorsutil.NewAggregate(errs)
    }
    
    // PullImage pulls the image
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/net/dnsclient_unix.go

    					// This error will abort the nameList loop.
    					hitStrictError = true
    					lastErr = result.error
    				} else if lastErr == nil || fqdn == name+"." {
    					// Prefer error for original name.
    					lastErr = result.error
    				}
    				continue
    			}
    
    			// Presotto says it's okay to assume that servers listed in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			}
    			// Unmount runs in a go routine, wait for its finish
    			var lastErr error
    			err = retryWithExponentialBackOff(testOperationBackOffDuration, func() (bool, error) {
    				if err := verifyTearDownCalls(fakePlugin, tc.expectedUnmounts); err != nil {
    					lastErr = err
    					return false, nil
    				}
    				return true, nil
    			})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. pkg/kubeapiserver/authenticator/config.go

    	if err != nil {
    		return err
    	}
    
    	var lastErr error
    	if waitErr := wait.PollUntilContextCancel(ctx, 10*time.Second, true, func(_ context.Context) (done bool, err error) {
    		lastErr = updatedJWTAuthenticator.healthCheck()
    		return lastErr == nil, nil
    	}); lastErr != nil || waitErr != nil {
    		updatedJWTAuthenticator.cancel()
    		return utilerrors.NewAggregate([]error{lastErr, waitErr}) // filters out nil errors
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    				var lastErr error
    
    				err := wait.PollUntilContextTimeout(context.Background(), 10*time.Second, 2*time.Minute, false, func(context.Context) (done bool, err error) {
    					restartErr := m.Restart()
    					if restartErr == nil {
    						return true, nil
    					}
    					klog.ErrorS(restartErr, "Retrying after error")
    					lastErr = restartErr
    					return false, nil
    				})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. internal/rest/client.go

    	TraceOutput io.Writer // Debug trace output
    
    	httpClient   *http.Client
    	url          *url.URL
    	newAuthToken func(audience string) string
    
    	sync.RWMutex // mutex for lastErr
    	lastErr      error
    	lastErrTime  time.Time
    }
    
    type restError string
    
    func (e restError) Error() string {
    	return string(e)
    }
    
    func (e restError) Timeout() bool {
    	return true
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top