Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LastError (0.12 sec)

  1. cmd/kubeadm/app/util/apiclient/idempotency.go

    			return false, *lastError
    		}
    
    		// Execute the mutating function
    		patchFn(n)
    
    		newData, err := json.Marshal(n)
    		if err != nil {
    			*lastError = errors.Wrapf(err, "failed to marshal modified node %q into JSON", n.Name)
    			return false, *lastError
    		}
    
    		patchBytes, err := strategicpatch.CreateTwoWayMergePatch(oldData, newData, v1.Node{})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/etcd/etcd.go

    	// Syncs the list of endpoints
    	var cli etcdClient
    	var lastError error
    	err := wait.PollUntilContextTimeout(context.Background(), constants.EtcdAPICallRetryInterval, constants.EtcdAPICallTimeout,
    		true, func(_ context.Context) (bool, error) {
    			var err error
    			cli, err = c.newEtcdClient(c.Endpoints)
    			if err != nil {
    				lastError = err
    				return false, nil
    			}
    			defer func() { _ = cli.Close() }()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/apiclient/wait.go

    			if err != nil {
    				lastError = formatError(fmt.Sprintf("error: %v", err))
    				return false, err
    			}
    			resp, err := client.Do(req)
    			if err != nil {
    				lastError = formatError(fmt.Sprintf("error: %v", err))
    				return false, nil
    			}
    			defer func() {
    				_ = resp.Body.Close()
    			}()
    			if resp.StatusCode != http.StatusOK {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/discovery/token/token.go

    				return false, nil
    			}
    			// Even if the ConfigMap is available the JWS signature is patched-in a bit later.
    			if _, ok := cm.Data[bootstrapapi.JWSSignatureKeyPrefix+token.ID]; !ok {
    				lastError = errors.Errorf("could not find a JWS signature in the cluster-info ConfigMap"+
    					" for token ID %q", token.ID)
    				klog.V(1).Infof("[discovery] Retrying due to error: %v", lastError)
    				return false, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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