Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for addPod (0.22 sec)

  1. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    	dsw.AddNode(nodeName1)
    	dsw.AddNode(nodeName2)
    
    	generatedVolumeName, podAddErr := dsw.AddPod(types.UniquePodName(podName1), controllervolumetesting.NewPod(podName1, podName1), volumeSpec, nodeName1)
    	if podAddErr != nil {
    		t.Fatalf("AddPod failed. Expected: <no error> Actual: <%v>", podAddErr)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/cache_test.go

    				addNode(t, 6)
    				addNode(t, 0)
    			},
    			expected: []string{"node-2", "node-0", "node-3", "node-4", "node-5", "node-6"},
    		},
    		{
    			name: "bug 91601, 7 nodes, two in a different zone",
    			operations: func(t *testing.T) {
    				addNode(t, 2)
    				updateSnapshot(t)
    				addNode(t, 3)
    				addNode(t, 4)
    				updateSnapshot(t)
    				addNode(t, 5)
    				addNode(t, 6)
    				addNode(t, 0)
    				addNode(t, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    				fakePodManager.AddPod(existingPod)
    				dswp.findAndAddNewPods()
    			}
    
    			newContainer := container
    			newContainer.SecurityContext.SELinuxOptions = tc.newContainerSELinuxOpts
    			newPod := createPodWithVolume("dswp-test-pod", "dswp-test-volume-name", "file-bound", []v1.Container{newContainer})
    
    			// Act - add the new Pod
    			fakePodManager.AddPod(newPod)
    			dswp.findAndAddNewPods()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  4. pkg/kubelet/status/status_manager_test.go

    	syncer := newTestManager(&fake.Clientset{})
    	pod := getTestPod()
    	pod.UID = "first"
    	syncer.podManager.(mutablePodManager).AddPod(pod)
    	differentPod := getTestPod()
    	differentPod.UID = "second"
    	syncer.podManager.(mutablePodManager).AddPod(differentPod)
    	syncer.kubeClient = fake.NewSimpleClientset(pod)
    	syncer.SetPodStatus(differentPod, getRandomPodStatus())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  5. pkg/controller/replicaset/replica_set_test.go

    	pod.ResourceVersion = "1"
    	manager.expectations.ExpectDeletions(logger, rsKey, []string{controller.PodKey(&pod)})
    
    	// A pod added with a deletion timestamp should decrement deletions, not creations.
    	manager.addPod(logger, &pod)
    
    	queueRS, _ := manager.queue.Get()
    	if queueRS != rsKey {
    		t.Fatalf("Expected to find key %v in queue, found %v", rsKey, queueRS)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/runtime/framework.go

    		if !status.IsSuccess() {
    			err := status.AsError()
    			logger.Error(err, "Plugin failed", "pod", klog.KObj(podToSchedule), "node", klog.KObj(nodeInfo.Node()), "operation", "addPod", "plugin", pl.Name())
    			return framework.AsStatus(fmt.Errorf("running AddPod on PreFilter plugin %q: %w", pl.Name(), err))
    		}
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	// Setup help functions to make the test more explicit
    	addPod := func(name, ip string) {
    		pod := generatePod(ip, name, "nsA", name, "node1", map[string]string{"app": "prod-app"}, map[string]string{})
    		addPods(t, controller, fx, pod)
    	}
    	deletePod := func(name, ip string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  8. pkg/controller/daemon/daemon_controller.go

    )
    
    // Reasons for DaemonSet events
    const (
    	// SelectingAllReason is added to an event when a DaemonSet selects all Pods.
    	SelectingAllReason = "SelectingAll"
    	// FailedPlacementReason is added to an event when a DaemonSet can't schedule a Pod to a specified node.
    	FailedPlacementReason = "FailedPlacement"
    	// FailedDaemonPodReason is added to an event when the status of a Pod of a DaemonSet is 'Failed'.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    // TestPlugin returns Error status when trying to `AddPod` or `RemovePod` on the nodes which have the {k,v} label pair defined on the nodes.
    type TestPlugin struct {
    	name string
    }
    
    func newTestPlugin(_ context.Context, injArgs runtime.Object, f framework.Handle) (framework.Plugin, error) {
    	return &TestPlugin{name: "test-plugin"}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  10. pkg/controller/job/job_controller.go

    	// podStoreSynced returns true if the pod store has been synced at least once.
    	// Added as a member to the struct to allow injection for testing.
    	podStoreSynced cache.InformerSynced
    	// jobStoreSynced returns true if the job store has been synced at least once.
    	// Added as a member to the struct to allow injection for testing.
    	jobStoreSynced cache.InformerSynced
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top