- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 112 for updateStats (0.16 sec)
-
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) -
pilot/pkg/config/kube/ingress/status.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 7.9K bytes - Viewed (0) -
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) -
pkg/controller/replicaset/replica_set_utils.go
fmt.Sprintf("sequence No: %v->%v", rs.Status.ObservedGeneration, newStatus.ObservedGeneration)) rs.Status = newStatus updatedRS, updateErr = c.UpdateStatus(context.TODO(), rs, metav1.UpdateOptions{}) if updateErr == nil { return updatedRS, nil } // Stop retrying if we exceed statusUpdateRetries - the replicaSet will be requeued with a rate limit.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 12:19:51 UTC 2023 - 7.1K bytes - Viewed (0) -
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) -
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) -
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) -
pilot/pkg/config/file/store.go
} func (s *KubeSource) Update(config config.Config) (newRevision string, err error) { return s.inner.Update(config) } func (s *KubeSource) UpdateStatus(config config.Config) (newRevision string, err error) { return s.inner.UpdateStatus(config) } func (s *KubeSource) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) { return s.inner.Patch(orig, patchFn) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 18.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/defaulting_test.go
mustNotExist(foo.Object, [][]string{{"status"}}) t.Logf("Updating status and expecting 'a' and 'b' to show up.") unstructured.SetNestedField(foo.Object, map[string]interface{}{}, "status") if foo, err = fooClient.UpdateStatus(context.TODO(), foo, metav1.UpdateOptions{}); err != nil { t.Fatal(err) } mustExist(foo.Object, [][]string{{"spec", "a"}, {"spec", "b"}, {"status", "a"}, {"status", "b"}, {"status", "replicas"}})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 21.2K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller.go
} claim, err := ec.kubeClient.ResourceV1alpha2().ResourceClaims(claim.Namespace).UpdateStatus(ctx, claim, metav1.UpdateOptions{}) if err != nil { return err } // Now also remove the finalizer if it is not needed anymore. // Note that the index may have changed as a result of the UpdateStatus call. builtinControllerFinalizer := slices.Index(claim.Finalizers, resourcev1alpha2.Finalizer)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 37.1K bytes - Viewed (0)