Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 208 for podStates (0.18 sec)

  1. 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)
  2. pkg/kubelet/container/cache.go

    // and the blocking GetNewerThan() method. The component responsible for
    // populating the cache is expected to call Delete() to explicitly free the
    // cache entries.
    type Cache interface {
    	Get(types.UID) (*PodStatus, error)
    	// Set updates the cache by setting the PodStatus for the pod only
    	// if the data is newer than the cache based on the provided
    	// time stamp. Returns if the cache was updated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 07:37:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. pkg/kubelet/metrics/collectors/log_metrics.go

    	return &logMetricsCollector{
    		podStats: podStats,
    	}
    }
    
    // DescribeWithStability implements the metrics.StableCollector interface.
    func (c *logMetricsCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- descLogSize
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (c *logMetricsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	podStats, err := c.podStats(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. 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)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	makeAndSetFakePod(t, m, fakeRuntime, pod)
    
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    	assert.Equal(t, pod.UID, podStatus.ID)
    	assert.Equal(t, pod.Name, podStatus.Name)
    	assert.Equal(t, pod.Namespace, podStatus.Namespace)
    	assert.Equal(t, apitest.FakePodSandboxIPs, podStatus.IPs)
    }
    
    func TestStopContainerWithNotFoundError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  8. pkg/kubelet/pod_container_deletor.go

    func getContainersToDeleteInPod(filterContainerID string, podStatus *kubecontainer.PodStatus, containersToKeep int) containerStatusbyCreatedList {
    	matchedContainer := func(filterContainerId string, podStatus *kubecontainer.PodStatus) *kubecontainer.Status {
    		if filterContainerId == "" {
    			return nil
    		}
    		for _, containerStatus := range podStatus.ContainerStatuses {
    			if containerStatus.ID.ID == filterContainerId {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 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/kuberuntime/util/util_test.go

    	for desc, test := range map[string]struct {
    		pod               *v1.Pod
    		status            *kubecontainer.PodStatus
    		expectedChanged   bool
    		expectedAttempt   uint32
    		expectedSandboxID string
    	}{
    		"Pod with no existing sandboxes": {
    			pod:               &v1.Pod{},
    			status:            &kubecontainer.PodStatus{},
    			expectedChanged:   true,
    			expectedAttempt:   0,
    			expectedSandboxID: "",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top