- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for updateStats (0.29 sec)
-
pkg/kubelet/server/stats/testing/mock_summary_provider.go
func (m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Get", ctx, updateStats) ret0, _ := ret[0].(*v1alpha1.Summary) ret1, _ := ret[1].(error) return ret0, ret1 } // Get indicates an expected call of Get. func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats any) *gomock.Call { mr.mock.ctrl.T.Helper()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/cc/training/queue_runner.cc
if (coord_ != nullptr) { coord_->WaitForStop(); } if (!cancel_op_name_.empty()) { UpdateStatus(RealRun(sess, cancel_op_name_, false)); } stopped_ = true; } Status QueueRunner::Join() { thread_pool_.reset(); mutex_lock l(mu_); return status_; } void QueueRunner::UpdateStatus(const Status& status) { { mutex_lock l(mu_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:30:37 UTC 2024 - 7K bytes - Viewed (0) -
pkg/kube/kclient/clienttest/test_helpers.go
res, err := t.c.Update(object) if err != nil { t.t.Fatalf("update %v/%v: %v", object.GetNamespace(), object.GetName(), err) } return res } func (t TestWriter[T]) UpdateStatus(object T) T { t.t.Helper() res, err := t.c.UpdateStatus(object) if err != nil { t.t.Fatalf("update status %v/%v: %v", object.GetNamespace(), object.GetName(), err) } return res } func (t TestWriter[T]) CreateOrUpdate(object T) T {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 3.9K bytes - Viewed (0) -
pkg/controller/storageversionmigrator/storageversionmigrator.go
} } else { // we can't migrate a resource that doesn't exist in the GC _, err = svmc.kubeClient.StoragemigrationV1alpha1(). StorageVersionMigrations(). UpdateStatus( ctx, setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason), metav1.UpdateOptions{}, ) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go
if obj == nil { return emptyResult, err } return obj.(*v1beta1.CustomResourceDefinition), err } // 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: Thu Apr 18 12:23:16 UTC 2024 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go
if obj == nil { return emptyResult, err } return obj.(*v1.CustomResourceDefinition), err } // 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: Thu Apr 18 12:23:16 UTC 2024 - 8.4K bytes - Viewed (0) -
pkg/kube/krt/index_test.go
} pc.CreateOrUpdateStatus(pod) tt.WaitUnordered("add/namespace/name") assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}}) pod.Status.PodIP = "1.2.3.5" pc.UpdateStatus(pod) tt.WaitUnordered("update/namespace/name") assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{}) assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}}) pod2 := &corev1.Pod{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/config/schema/codegen/templates/crdclient.go.tmpl
}, metav1.UpdateOptions{}) {{- end }} {{- end }} default: return nil, fmt.Errorf("unsupported type: %v", cfg.GroupVersionKind) } } func updateStatus(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) { switch cfg.GroupVersionKind { {{- range .Entries }} {{- if and (not .Resource.Synthetic) (not .Resource.Builtin) (not (eq .StatusType "")) }}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 13:57:51 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/kube/krt/join_test.go
Name: "svc", Namespace: "namespace", }, Spec: corev1.ServiceSpec{Selector: map[string]string{"app": "foo"}}, } sc.Create(svc) pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"} pc.UpdateStatus(pod) assert.EventuallyEqual(t, fetch, []SimpleEndpoint{ {pod.Name, svc.Name, pod.Namespace, "1.2.3.4"}, {"name-static", svc.Name, pod.Namespace, "9.9.9.9"}, }) ExtraSimplePods.Set(nil)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 6.1K bytes - Viewed (0) -
pkg/controller/storageversionmigrator/resourceversion.go
return nil } exists, err := rv.resourceExists(gvr) if err != nil { return err } if !exists { _, err = rv.kubeClient.StoragemigrationV1alpha1(). StorageVersionMigrations(). UpdateStatus( ctx, setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason), metav1.UpdateOptions{}, ) if err != nil { return err } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.5K bytes - Viewed (0)