Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for makeFakePodSandboxes (0.19 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    		t.Run(test.description, func(t *testing.T) {
    			ctx := context.Background()
    			podStateProvider.removed = make(map[types.UID]struct{})
    			podStateProvider.terminated = make(map[types.UID]struct{})
    			fakeSandboxes := makeFakePodSandboxes(t, m, test.sandboxes)
    			fakeContainers := makeFakeContainers(t, m, test.containers)
    			for _, s := range test.sandboxes {
    				if !s.running && s.pod.Name == "deleted" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    		})
    	}
    	podSandBoxStatus.Network.AdditionalIps = additionalPodIPs
    	return podSandBoxStatus
    
    }
    
    // makeFakePodSandboxes creates a group of fake pod sandboxes based on the sandbox templates.
    // The function guarantees the order of the fake pod sandboxes is the same with the templates.
    func makeFakePodSandboxes(t *testing.T, m *kubeGenericRuntimeManager, templates []sandboxTemplate) []*apitest.FakePodSandbox {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
Back to top