Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for updateStats (0.16 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    		Body(customResourceDefinition).
    		Do(ctx).
    		Into(result)
    	return
    }
    
    // UpdateStatus was generated because the type contains a Status member.
    // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/scope.cc

      return impl()->graph_;
    }
    
    Status Scope::status() const { return *impl()->status_; }
    
    const std::vector<Operation>& Scope::control_deps() const {
      return impl()->control_deps_;
    }
    
    void Scope::UpdateStatus(const Status& s) const {
      impl()->status_->Update(s);
      if (impl()->exit_on_error_ && !ok()) {
        LOG(FATAL) << *impl()->status_;
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. pkg/kube/krt/collection_test.go

    	}
    	pc.Create(pod)
    	assert.Equal(t, fetcherSorted(SimplePods)(), nil)
    
    	pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"}
    	pc.UpdateStatus(pod)
    	assert.EventuallyEqual(t, fetcherSorted(SimplePods), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	assert.EventuallyEqual(t, fetcherSorted(SimplePods), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/controller/util/node/controller_utils.go

    	pod.Status.Message = fmt.Sprintf(nodepkg.NodeUnreachablePodMessage, nodeName, pod.Name)
    
    	var updatedPod *v1.Pod
    	var err error
    	if updatedPod, err = kubeClient.CoreV1().Pods(pod.Namespace).UpdateStatus(ctx, pod, metav1.UpdateOptions{}); err != nil {
    		return nil, err
    	}
    	return updatedPod, nil
    }
    
    // MarkPodsNotReady updates ready status of given pods running on
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    		Status:  apiextensionsv1.ConditionTrue,
    		Reason:  "InstanceDeletionInProgress",
    		Message: "CustomResource deletion is in progress",
    	})
    	crd, 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
    - 12.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/subresources_test.go

    			if err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    
    			// UpdateStatus should not update spec.
    			// Check that .spec.num = 10 and .status.num = 20
    			updatedStatusInstance, err := noxuResourceClient.UpdateStatus(context.TODO(), gottenNoxuInstance, metav1.UpdateOptions{})
    			if err != nil {
    				t.Fatalf("unable to update status: %v", err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 12 17:35:34 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. pkg/controller/deployment/sync.go

    		deploymentutil.SetDeploymentCondition(&d.Status, *condition)
    		needsUpdate = true
    	}
    
    	if !needsUpdate {
    		return nil
    	}
    
    	var err error
    	_, err = dc.client.AppsV1().Deployments(d.Namespace).UpdateStatus(ctx, d, metav1.UpdateOptions{})
    	return err
    }
    
    // getAllReplicaSetsAndSyncRevision returns all the replica sets for the provided deployment (new and all old), with new RS's and deployment's revision updated.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  8. pkg/controller/certificates/signer/signer.go

    			Status:         v1.ConditionTrue,
    			Reason:         "SignerValidationFailure",
    			Message:        err.Error(),
    			LastUpdateTime: metav1.Now(),
    		})
    		_, err = s.client.CertificatesV1().CertificateSigningRequests().UpdateStatus(ctx, csr, metav1.UpdateOptions{})
    		if err != nil {
    			return fmt.Errorf("error adding failure condition for csr: %v", err)
    		}
    		return nil
    	} else if !recognized {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:26:08 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/crdclient/client.go

    	if err != nil {
    		return "", err
    	}
    	return meta.GetResourceVersion(), nil
    }
    
    func (cl *Client) UpdateStatus(cfg config.Config) (string, error) {
    	if cfg.Status == nil {
    		return "", fmt.Errorf("nil status for %v/%v on updateStatus()", cfg.Name, cfg.Namespace)
    	}
    
    	meta, err := updateStatus(cl.client, cfg, getObjectMetadata(cfg))
    	if err != nil {
    		return "", err
    	}
    	return meta.GetResourceVersion(), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. pkg/kube/kclient/client.go

    }
    
    func (n *writeClient[T]) UpdateStatus(object T) (T, error) {
    	api, ok := kubeclient.GetWriteClient[T](n.client, object.GetNamespace()).(kubetypes.WriteStatusAPI[T])
    	if !ok {
    		return ptr.Empty[T](), fmt.Errorf("%T does not support UpdateStatus", object)
    	}
    	return api.UpdateStatus(context.Background(), object, metav1.UpdateOptions{})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top