Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for updateStats (0.22 sec)

  1. pkg/kubelet/server/stats/summary_sys_containers_windows.go

    	stats = append(stats, sp.getSystemPodsCPUAndMemoryStats(nodeConfig, podStats, updateStats))
    	return stats
    }
    
    func (sp *summaryProviderImpl) GetSystemContainersCPUAndMemoryStats(nodeConfig cm.NodeConfig, podStats []statsapi.PodStats, updateStats bool) (stats []statsapi.ContainerStats) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/server/stats/summary_sys_containers.go

    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    	"k8s.io/kubernetes/pkg/kubelet/cm"
    )
    
    func (sp *summaryProviderImpl) GetSystemContainersStats(nodeConfig cm.NodeConfig, podStats []statsapi.PodStats, updateStats bool) (stats []statsapi.ContainerStats) {
    	systemContainers := map[string]struct {
    		name             string
    		forceStatsUpdate bool
    		startTime        metav1.Time
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  4. pkg/kubelet/server/stats/summary.go

    )
    
    // SummaryProvider provides summaries of the stats from Kubelet.
    type SummaryProvider interface {
    	// Get provides a new Summary with the stats from Kubelet,
    	// and will update some stats if updateStats is true
    	Get(ctx context.Context, updateStats bool) (*statsapi.Summary, error)
    	// GetCPUAndMemoryStats provides a new Summary with the CPU and memory stats from Kubelet,
    	GetCPUAndMemoryStats(ctx context.Context) (*statsapi.Summary, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/provider.go

    // this function doesn't generate filesystem stats.
    func (p *Provider) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	info, err := getCgroupInfo(p.cadvisor, cgroupName, updateStats)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to get cgroup stats for %q: %v", cgroupName, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 13:56:22 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. pkg/kubelet/server/stats/handler.go

    	// with the specified cgroupName.
    	GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error)
    	// GetCgroupCPUAndMemoryStats returns the CPU and memory stats of the cgroup with the specified cgroupName.
    	GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error)
    
    	// RootFsStats returns the stats of the node root filesystem.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. pkg/controller/cronjob/injection.go

    }
    
    var _ cjControlInterface = &realCJControl{}
    
    func (c *realCJControl) UpdateStatus(ctx context.Context, cj *batchv1.CronJob) (*batchv1.CronJob, error) {
    	return c.KubeClient.BatchV1().CronJobs(cj.Namespace).UpdateStatus(ctx, cj, metav1.UpdateOptions{})
    }
    
    // fakeCJControl is the default implementation of cjControlInterface.
    type fakeCJControl struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 09:37:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top