Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for LastError (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/configuration/configuration_manager.go

    		failureThreshold:     defaultFailureThreshold,
    		bootstrapRetries:     defaultBootstrapRetries,
    		bootstrapGracePeriod: defaultBootstrapGraceperiod,
    	}
    	return &p
    }
    
    func (a *poller) lastError(err error) {
    	a.lock.Lock()
    	defer a.lock.Unlock()
    	a.lastErr = err
    }
    
    func (a *poller) notReady() {
    	a.lock.Lock()
    	defer a.lock.Unlock()
    	a.ready = false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 06 02:02:38 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  2. cluster/gce/windows/testonly/user-profile.psm1

     
        $script:nativeMethods += [PSCustomObject]@{ Dll = $dll; Signature = $methodSignature; }
    }
    function Get-Win32LastError
    {
        [CmdletBinding()]
        [Alias()]
        [OutputType([int])]
        Param($typeName = 'LastError')
     if (-not ([System.Management.Automation.PSTypeName]$typeName).Type)
        {
        $lasterrorCode = $script:lasterror | ForEach-Object{
            '[DllImport("kernel32.dll", SetLastError = true)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 26 00:44:57 UTC 2019
    - 9.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    		defer lock.RUnlock()
    
    		if clientErr != nil {
    			return clientErr
    		}
    		if limiter.Allow() == false {
    			return lastError.Load()
    		}
    		ctx, cancel := context.WithTimeout(context.Background(), timeout)
    		defer cancel()
    		now := time.Now()
    		err := prober.Probe(ctx)
    		lastError.Store(err, now)
    		return err
    	}, nil
    }
    
    func newETCD3ProberMonitor(c storagebackend.Config) (*etcd3ProberMonitor, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. internal/rest/client.go

    }
    
    // LastConn returns when the disk was (re-)connected
    func (c *Client) LastConn() time.Time {
    	return time.Unix(0, atomic.LoadInt64(&c.lastConn))
    }
    
    // LastError returns previous error
    func (c *Client) LastError() error {
    	c.RLock()
    	defer c.RUnlock()
    	return fmt.Errorf("[%s] %w", c.lastErrTime.Format(time.RFC3339), c.lastErr)
    }
    
    // computes the exponential backoff duration according to
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    					crbExists = true
    					return true, nil
    				} else {
    					// Retry on any other error type.
    					lastError = errors.Wrap(err, "unable to create ClusterRoleBinding")
    					return false, nil
    				}
    			}
    			crbExists = true
    			return true, nil
    		})
    	if err != nil {
    		return nil, lastError
    	}
    
    	// The CRB was created or already existed; return the admin.conf client.
    	if crbExists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/apiclient/idempotency_test.go

    					return true, nil, tc.fakeError
    				})
    			}
    			var lastError error
    			conditionFunction := PatchNodeOnce(client, tc.lookupName, func(node *v1.Node) {
    				node.Annotations = map[string]string{
    					"updatedBy": "test",
    				}
    			}, &lastError)
    			success, err := conditionFunction(context.Background())
    			if err != nil && tc.success {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top