Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getPodContainerStatuses (0.45 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    				klog.V(4).InfoS("Runtime does not set pod status timestamp", "pod", klog.KObj(pod))
    				containerStatuses, err = m.getPodContainerStatuses(ctx, uid, name, namespace)
    				if err != nil {
    					if m.logReduction.ShouldMessageBePrinted(err.Error(), podFullName) {
    						klog.ErrorS(err, "getPodContainerStatuses for pod failed", "pod", klog.KObj(pod))
    					}
    					return nil, err
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    	}
    
    	// Create fake sandbox and container
    	_, fakeContainers := makeAndSetFakePod(t, m, fakeRuntime, pod)
    	assert.Equal(t, len(fakeContainers), 1)
    
    	ctx := context.Background()
    	cStatus, err := m.getPodContainerStatuses(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    	containerID := cStatus[0].ID
    
    	err = m.updateContainerResources(pod, &pod.Spec.Containers[0], containerID)
    	assert.NoError(t, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container.go

    			if len(cStatus.Message) != 0 {
    				cStatus.Message += ": "
    			}
    			cStatus.Message += tMessage
    		}
    	}
    	return cStatus
    }
    
    // getPodContainerStatuses gets all containers' statuses for the pod.
    func (m *kubeGenericRuntimeManager) getPodContainerStatuses(ctx context.Context, uid kubetypes.UID, name, namespace string) ([]*kubecontainer.Status, error) {
    	// Select all containers of the given pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top