Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for podStates (0.14 sec)

  1. pkg/scheduler/internal/cache/cache.go

    	// This mutex guards all fields within this cache struct.
    	mu sync.RWMutex
    	// a set of assumed pod keys.
    	// The key could further be used to get an entry in podStates.
    	assumedPods sets.Set[string]
    	// a map from pod key to podState.
    	podStates map[string]*podState
    	nodes     map[string]*nodeInfoListItem
    	// headNode points to the most recently updated NodeInfo in "nodes". It is the
    	// head of the linked list.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podstatus.go

    	ResourceClaimStatuses      []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
    }
    
    // PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with
    // apply.
    func PodStatus() *PodStatusApplyConfiguration {
    	return &PodStatusApplyConfiguration{}
    }
    
    // WithPhase sets the Phase field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:43:16 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  3. pkg/kubelet/util/pod_startup_latency_tracker_test.go

    				podState.firstStartedPulling.Add(time.Second*10), podState.firstStartedPulling)
    		}
    		if !podState.lastFinishedPulling.Equal(frozenTime.Add(time.Second * 20)) { // should be updated when the pod's last image finished pulling
    			t.Errorf("expected pod lastFinishedPulling: %s but got lastFinishedPulling: %s",
    				podState.lastFinishedPulling.Add(time.Second*20), podState.lastFinishedPulling)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 06:09:49 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/eviction_manager.go

    	for _, pod := range pods {
    		podStats, ok := statsFunc(pod)
    		if !ok {
    			continue
    		}
    
    		if m.emptyDirLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    			continue
    		}
    
    		if m.podEphemeralStorageLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    			continue
    		}
    
    		if m.containerEphemeralStorageLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/conversion_test.go

    				t.Errorf("%v: Convert core.PodStatus to v1.PodStatus failed. Expected v1.PodStatus[%v]=%v but found %v", i, idx, input.PodIPs[idx].IP, v1PodStatus.PodIPs[idx].IP)
    			}
    		}
    	}
    }
    func Test_v1_PodStatus_to_core_PodStatus(t *testing.T) {
    	asymmetricInputs := []struct {
    		name string
    		in   v1.PodStatus
    		out  core.PodStatus
    	}{
    		{
    			name: "mismatched podIP",
    			in: v1.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  6. pkg/controller/job/pod_failure_policy_test.go

    							Operator: batch.PodFailurePolicyOnExitCodesOpIn,
    							Values:   []int32{2, 3},
    						},
    					},
    				},
    			},
    			failedPod: &v1.Pod{
    				ObjectMeta: validPodObjectMeta,
    				Status: v1.PodStatus{
    					Phase: v1.PodFailed,
    					ContainerStatuses: []v1.ContainerStatus{
    						{
    							Name: "main-container",
    							State: v1.ContainerState{
    								Terminated: &v1.ContainerStateTerminated{
    									ExitCode: 2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/example/v1/zz_generated.conversion.go

    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*PodStatus)(nil), (*example.PodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_PodStatus_To_example_PodStatus(a.(*PodStatus), b.(*example.PodStatus), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*example.PodStatus)(nil), (*PodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 10.6K bytes
    - Viewed (0)
  8. pkg/kubelet/pleg/evented.go

    func (e *EventedPLEG) updateRunningPodMetric(podStatus *kubecontainer.PodStatus) {
    	cachedPodStatus, err := e.cache.Get(podStatus.ID)
    	if err != nil {
    		klog.ErrorS(err, "Evented PLEG: Get cache", "podID", podStatus.ID)
    	}
    	// cache miss condition: The pod status object will have empty state if missed in cache
    	if len(cachedPodStatus.SandboxStatuses) < 1 {
    		sandboxState := getPodSandboxState(podStatus)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/cadvisor_stats_provider.go

    		ref := buildPodRef(cinfo.Spec.Labels)
    
    		// Lookup the PodStats for the pod using the PodRef. If none exists,
    		// initialize a new entry.
    		podStats, found := podToStats[ref]
    		if !found {
    			podStats = &statsapi.PodStats{PodRef: ref}
    			podToStats[ref] = podStats
    		}
    
    		// Update the PodStats entry with the stats from the container by
    		// adding it to podStats.Containers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  10. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName0)).Return(v1.PodStatus{StartTime: &p0Time}, true)
    	mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName1)).Return(v1.PodStatus{StartTime: &p1Time}, true)
    	mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName2)).Return(v1.PodStatus{StartTime: &p2Time}, true)
    	mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName3)).Return(v1.PodStatus{StartTime: &p3Time}, true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top