Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 91 for updateStats (5.91 sec)

  1. internal/grid/connection.go

    	}
    	err = conn.SetWriteDeadline(time.Now().Add(connWriteTimeout))
    	if err != nil {
    		return err
    	}
    	return wsutil.WriteMessage(conn, c.side, ws.OpBinary, dst)
    }
    
    func (c *Connection) connect() {
    	c.updateState(StateConnecting)
    	rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    	// Runs until the server is shut down.
    	for {
    		if c.State() == StateShutdown {
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/crdclient/client_test.go

    			}); err != nil {
    				t.Errorf("Unexpected Error in Update -> %v", err)
    			}
    			if r.StatusKind() != "" {
    				stat, err := r.Status()
    				if err != nil {
    					t.Fatal(err)
    				}
    				if _, err := store.UpdateStatus(config.Config{
    					Meta:   configMeta,
    					Status: stat,
    				}); err != nil {
    					t.Errorf("Unexpected Error in Update -> %v", err)
    				}
    			}
    			var cfg *config.Config
    			// validate it is updated
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 02:58:52 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    		if markReady {
    			setPodReady(newPod)
    		}
    		newPod.Status.PodIP = ip
    		newPod.Status.Phase = corev1.PodRunning
    		newPod.Status.PodIPs = []corev1.PodIP{
    			{
    				IP: ip,
    			},
    		}
    		s.pc.UpdateStatus(newPod)
    	} else {
    		s.pc.Update(pod)
    	}
    }
    
    func generateNode(name string, labels map[string]string) *corev1.Node {
    	return &corev1.Node{
    		TypeMeta: metav1.TypeMeta{
    			Kind:       "Node",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go

    		updatedQuotas:   updatedCache,
    	}, nil
    }
    
    func (e *quotaAccessor) UpdateQuotaStatus(newQuota *corev1.ResourceQuota) error {
    	updatedQuota, err := e.client.CoreV1().ResourceQuotas(newQuota.Namespace).UpdateStatus(context.TODO(), newQuota, metav1.UpdateOptions{})
    	if err != nil {
    		return err
    	}
    
    	key := newQuota.Namespace + "/" + newQuota.Name
    	e.updatedQuotas.Add(key, updatedQuota)
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. pkg/kube/kubetypes/types.go

    }
    
    // WriteAPI exposes a generic API for a client go type for status operations.
    // Not all types have status, so they need to be split out
    type WriteStatusAPI[T runtime.Object] interface {
    	UpdateStatus(ctx context.Context, object T, opts metav1.UpdateOptions) (T, error)
    }
    
    // ReadAPI exposes a generic API for a client go type for read operations.
    type ReadAPI[T runtime.Object, TL runtime.Object] interface {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pilot/pkg/config/memory/store.go

    		delete(cfg.Annotations, ResourceVersion)
    	} else {
    		cfg.ResourceVersion = time.Now().String()
    	}
    
    	ns[cfg.Name] = cfg
    	return cfg.ResourceVersion, nil
    }
    
    func (cr *store) UpdateStatus(cfg config.Config) (string, error) {
    	return cr.Update(cfg)
    }
    
    func (cr *store) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) {
    	cr.mutex.Lock()
    	defer cr.mutex.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 26 01:14:27 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/ingress/status.go

    		log.Debugf("ingress has no change, no action")
    		return nil
    	}
    
    	log.Infof("updating IPs (%v)", wantIPs)
    	ing = ing.DeepCopy()
    	ing.Status.LoadBalancer.Ingress = wantIPs
    	_, err := s.ingresses.UpdateStatus(ing)
    	if err != nil {
    		return fmt.Errorf("error updating ingress status: %v", err)
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. pkg/controller/testutil/test_utils.go

    			}
    			m.UpdatedNodes[i] = &nodeCopy
    			return node, nil
    		}
    	}
    	m.UpdatedNodes = append(m.UpdatedNodes, &nodeCopy)
    	return node, nil
    }
    
    // UpdateStatus updates a status of a Node in the fake store.
    func (m *FakeNodeHandler) UpdateStatus(_ context.Context, node *v1.Node, _ metav1.UpdateOptions) (*v1.Node, error) {
    	m.lock.Lock()
    	defer func() {
    		m.RequestCount++
    		m.lock.Unlock()
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/apiapproval/apiapproval_controller.go

    		return nil
    	}
    
    	// update condition
    	crd := inCustomResourceDefinition.DeepCopy()
    	apihelpers.SetCRDCondition(crd, *cond)
    
    	_, err = c.crdClient.CustomResourceDefinitions().UpdateStatus(context.TODO(), crd, metav1.UpdateOptions{})
    	if apierrors.IsNotFound(err) || apierrors.IsConflict(err) {
    		// deleted or changed in the meantime, we'll get called again
    		return nil
    	}
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. security/pkg/pki/ra/k8s_ra_test.go

    				// to make sure watchers can catch the event
    				time.Sleep(time.Millisecond)
    				client.Kube().CertificatesV1().CertificateSigningRequests().UpdateStatus(ctx, csr, metav1.UpdateOptions{})
    			}
    		}
    	}()
    	return client
    }
    
    func createFakeK8sRA(client kube.Client, caCertFile string) (*KubernetesRA, error) {
    	defaultCertTTL := 30 * time.Minute
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 27 00:44:54 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top