Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetPodAndMirrorPod (0.14 sec)

  1. pkg/kubelet/pod/testing/mock_manager.go

    }
    
    // GetPodAndMirrorPod mocks base method.
    func (m *MockManager) GetPodAndMirrorPod(arg0 *v1.Pod) (*v1.Pod, *v1.Pod, bool) {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetPodAndMirrorPod", arg0)
    	ret0, _ := ret[0].(*v1.Pod)
    	ret1, _ := ret[1].(*v1.Pod)
    	ret2, _ := ret[2].(bool)
    	return ret0, ret1, ret2
    }
    
    // GetPodAndMirrorPod indicates an expected call of GetPodAndMirrorPod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. pkg/kubelet/pod/pod_manager.go

    	// whether it was known to the pod manager.
    	GetMirrorPodByPod(*v1.Pod) (*v1.Pod, bool)
    	// GetPodAndMirrorPod returns the complement for a pod - if a pod was provided
    	// and a mirror pod can be found, return it. If a mirror pod is provided and
    	// the pod can be found, return it and true for wasMirror.
    	GetPodAndMirrorPod(*v1.Pod) (pod, mirrorPod *v1.Pod, wasMirror bool)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    		// not exist in the pod manager, it means that it has been deleted in
    		// the apiserver and no action (other than cleanup) is required.
    		kl.podManager.AddPod(pod)
    
    		pod, mirrorPod, wasMirror := kl.podManager.GetPodAndMirrorPod(pod)
    		if wasMirror {
    			if pod == nil {
    				klog.V(2).InfoS("Unable to find pod for mirror pod, skipping", "mirrorPod", klog.KObj(mirrorPod), "mirrorPodUID", mirrorPod.UID)
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    		isStatic := kubetypes.IsStaticPod(desiredPod)
    		pod, mirrorPod, wasMirror := kl.podManager.GetPodAndMirrorPod(desiredPod)
    		if pod == nil || wasMirror {
    			klog.V(2).InfoS("Programmer error, restartable pod was a mirror pod but activePods should never contain a mirror pod", "podUID", desiredPod.UID)
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top