Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for PodSandboxStatus (0.26 sec)

  1. pkg/kubelet/stats/cri_stats_provider_test.go

    		sandbox1.PodSandboxStatus.Id:  getTestContainerInfo(seedSandbox1, pName1, sandbox1.PodSandboxStatus.Metadata.Namespace, kubelettypes.PodInfraContainerName),
    		sandbox1Cgroup:                getTestContainerInfo(seedSandbox1, "", "", ""),
    		container2.ContainerStatus.Id: getTestContainerInfo(seedContainer2, pName1, sandbox1.PodSandboxStatus.Metadata.Namespace, cName2),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/util/util_test.go

    			expectedAttempt:   0,
    			expectedSandboxID: "",
    		},
    		"Pod with multiple ready sandbox statuses": {
    			pod: &v1.Pod{},
    			status: &kubecontainer.PodStatus{
    				SandboxStatuses: []*runtimeapi.PodSandboxStatus{
    					{
    						Id:       "sandboxID2",
    						Metadata: &runtimeapi.PodSandboxMetadata{Attempt: uint32(1)},
    						State:    runtimeapi.PodSandboxState_SANDBOX_READY,
    					},
    					{
    						Id:       "sandboxID1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/evented.go

    		// TODO(#114371): Figure out a way to handle this case instead of ignoring.
    		if event.PodSandboxStatus == nil || event.PodSandboxStatus.Metadata == nil {
    			klog.ErrorS(nil, "Evented PLEG: received ContainerEventResponse with nil PodSandboxStatus or PodSandboxStatus.Metadata", "containerEventResponse", event)
    			continue
    		}
    
    		podID := types.UID(event.PodSandboxStatus.Metadata.Uid)
    		shouldSendPLEGEvent := false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/evented_test.go

    	podStatuses := make([]*kubecontainer.PodStatus, 5)
    	for i := range podStatuses {
    		id := fmt.Sprintf("test-pod-%d", i)
    		podStatuses[i] = &kubecontainer.PodStatus{
    			ID: types.UID(id),
    			SandboxStatuses: []*v1.PodSandboxStatus{
    				{Id: id},
    			},
    			ContainerStatuses: []*kubecontainer.Status{
    				{ID: kubecontainer.ContainerID{ID: id}, State: kubecontainer.ContainerStateRunning},
    			},
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 01 07:45:05 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. pkg/kubelet/status/generate_test.go

    			expected: v1.PodCondition{
    				Status: v1.ConditionFalse,
    			},
    		},
    		"Pod sandbox status not ready": {
    			pod: &v1.Pod{},
    			status: &kubecontainer.PodStatus{
    				SandboxStatuses: []*runtimeapi.PodSandboxStatus{
    					{
    						Metadata: &runtimeapi.PodSandboxMetadata{Attempt: uint32(0)},
    						State:    runtimeapi.PodSandboxState_SANDBOX_NOTREADY,
    					},
    				},
    			},
    			expected: v1.PodCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	return &kubecontainer.PodStatus{
    		ID:                kubetypes.UID(event.PodSandboxStatus.Metadata.Uid),
    		Name:              event.PodSandboxStatus.Metadata.Name,
    		Namespace:         event.PodSandboxStatus.Metadata.Namespace,
    		IPs:               podIPs,
    		SandboxStatuses:   []*runtimeapi.PodSandboxStatus{event.PodSandboxStatus},
    		ContainerStatuses: kubeContainerStatuses,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/instrumented_services.go

    	recordError(operation, err)
    	return err
    }
    
    func (in instrumentedRuntimeService) PodSandboxStatus(ctx context.Context, podSandboxID string, verbose bool) (*runtimeapi.PodSandboxStatusResponse, error) {
    	const operation = "podsandbox_status"
    	defer recordOperation(operation, time.Now())
    
    	out, err := in.service.PodSandboxStatus(ctx, podSandboxID, verbose)
    	recordError(operation, err)
    	return out, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    			assert.NoError(t, err)
    			assert.Len(t, realRemain, len(test.remain))
    			for _, remain := range test.remain {
    				resp, err := fakeRuntime.PodSandboxStatus(ctx, fakeSandboxes[remain].Id, false)
    				assert.NoError(t, err)
    				assert.Equal(t, &fakeSandboxes[remain].PodSandboxStatus, resp.Status)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	assert.NoError(t, err, "generatePodSandboxConfig for sandbox template %+v", template)
    
    	podSandboxID := apitest.BuildSandboxName(config.Metadata)
    	podSandBoxStatus := &apitest.FakePodSandbox{
    		PodSandboxStatus: runtimeapi.PodSandboxStatus{
    			Id:        podSandboxID,
    			Metadata:  config.Metadata,
    			State:     template.state,
    			CreatedAt: template.createdAt,
    			Network: &runtimeapi.PodSandboxNetworkStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    	return resp, nil
    }
    
    // determinePodSandboxIP determines the IP addresses of the given pod sandbox.
    func (m *kubeGenericRuntimeManager) determinePodSandboxIPs(podNamespace, podName string, podSandbox *runtimeapi.PodSandboxStatus) []string {
    	podIPs := make([]string, 0)
    	if podSandbox.Network == nil {
    		klog.InfoS("Pod Sandbox status doesn't have network information, cannot report IPs", "pod", klog.KRef(podNamespace, podName))
    		return podIPs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top