Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for updateStats (0.48 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    	} else {
    		cond.LastTransitionTime = metav1.NewTime(time.Now())
    		apiextensionshelpers.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
    - 8.3K bytes
    - Viewed (0)
  9. cmd/site-replication-utils.go

    				wg.Wait()
    				sm.Unlock()
    			}
    			sTimer.Reset(siteResyncSaveInterval)
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    // update overall site resync state
    func (sm *siteResyncMetrics) updateState(s SiteResyncStatus) error {
    	if !globalSiteReplicationSys.isEnabled() {
    		return nil
    	}
    	sm.Lock()
    	defer sm.Unlock()
    	switch s.Status {
    	case ResyncStarted:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
Back to top