Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for newpod (0.12 sec)

  1. pkg/api/pod/util_test.go

    					}
    
    					DropDisabledPodFields(newPod, newPod)
    					require.Equal(t, &test.pod, newPod, "unchanged pod should never be mutated")
    
    					DropDisabledPodFields(newPod, nil)
    
    					if enabled && fieldsEnabled {
    						assert.Equal(t, &test.pod, newPod, "pod should not be mutated when both feature gates are enabled")
    						return
    					}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    func TestOrderedByPriorityProcess(t *testing.T) {
    	pod1 := newPod("low-priority-high-usage", lowPriority, nil, nil)
    	pod2 := newPod("low-priority-low-usage", lowPriority, nil, nil)
    	pod3 := newPod("high-priority-high-usage", highPriority, nil, nil)
    	pod4 := newPod("high-priority-low-usage", highPriority, nil, nil)
    	stats := map[*v1.Pod]statsapi.PodStats{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller_test.go

    			wantedPods: []*v1.Pod{
    				newPod("matching-owned-0-", "node-0", simpleDaemonSetLabel, ds),
    				newPod("matching-orphan-0-", "node-0", simpleDaemonSetLabel, nil),
    				newPod("matching-owned-1-", "node-1", simpleDaemonSetLabel, ds),
    				newPod("matching-orphan-1-", "node-1", simpleDaemonSetLabel, nil),
    				func() *v1.Pod {
    					pod := newPod("matching-owned-succeeded-pod-0-", "node-0", simpleDaemonSetLabel, ds)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  4. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    									LastTransitionTime: metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC),
    								},
    							},
    						},
    					},
    				},
    				Clientset: fake.NewSimpleClientset(&v1.PodList{Items: []v1.Pod{*testutil.NewPod("pod0", "node0")}}),
    			},
    			timeToPass: 60 * time.Minute,
    			newNodeStatus: v1.NodeStatus{
    				Conditions: []v1.NodeCondition{
    					{
    						Type:   v1.NodeReady,
    						Status: v1.ConditionUnknown,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		// This function returns three values;
    		// - oldPod/newPod: each test will call Update() with these oldPod and newPod.
    		prepareFunc func(t *testing.T, logger klog.Logger, q *PriorityQueue) (oldPod, newPod *v1.Pod)
    		// schedulingHintsEnablement shows which value of QHint feature gate we test a test case with.
    		schedulingHintsEnablement []bool
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller_test.go

    	for i := 0; i < count; i++ {
    		newPod := newPod(fmt.Sprintf("pod-%v", rand.String(10)), job)
    		newPod.Status = v1.PodStatus{Phase: status}
    		newPod.Status.ContainerStatuses = []v1.ContainerStatus{
    			{
    				State: v1.ContainerState{
    					Terminated: &v1.ContainerStateTerminated{
    						FinishedAt: testFinishedAt,
    					},
    				},
    			},
    		}
    		newPod.Finalizers = append(newPod.Finalizers, batch.JobTrackingFinalizer)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/eviction_manager_test.go

    func TestAdmitUnderNodeConditions(t *testing.T) {
    	manager := &managerImpl{}
    	pods := []*v1.Pod{
    		newPod("guaranteed-pod", scheduling.DefaultPriorityWhenNoDefaultClassExists, makeContainersByQOS(v1.PodQOSGuaranteed), nil),
    		newPod("burstable-pod", scheduling.DefaultPriorityWhenNoDefaultClassExists, makeContainersByQOS(v1.PodQOSBurstable), nil),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	newPod, ok := obj.(*example.Pod)
    	if !ok {
    		t.Fatalf("unexpected object: %#v", obj)
    	}
    
    	// update the object should not fail precondition
    	newPod.Spec.NodeName = "machine2"
    	res, _, err := registry.Update(ctx, podName, rest.DefaultUpdatedObjectInfo(newPod), rest.ValidateAllObjectFunc, rest.ValidateAllObjectUpdateFunc, false, &metav1.UpdateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_test.go

    	spec := v1.PodSpec{NodeName: string(kl.nodeName), Containers: []v1.Container{{Ports: []v1.ContainerPort{{HostPort: 80}}}}}
    	pods := []*v1.Pod{
    		podWithUIDNameNsSpec("123456789", "newpod", "foo", spec),
    		podWithUIDNameNsSpec("987654321", "oldpod", "foo", spec),
    	}
    	// Make sure the Pods are in the reverse order of creation time.
    	pods[1].CreationTimestamp = metav1.NewTime(time.Now())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  10. src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2

    Isaac.Newton-Opticks.txt Produced by Suzanne Lybarger, steve harris, Josephine Paolucci and the Online Distributed Proofreading Team at http://www.pgdp.net. OPTICKS: OR, A TREATISE OF THE _Reflections_, _Refractions_, _Inflections_ and _Colours_ OF LIGHT. _The_ FOURTH EDITION, _corrected_. By Sir _ISAAC NEWTON_, Knt. LONDON: Printed for WILLIAM INNYS at the West-End of St. _Paul's_. MDCCXXX. TITLE PAGE OF THE 1730 EDITION SIR ISAAC NEWTON'S ADVERTISEMENTS Advertisement I _Part of the ensuing Discourse...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 24 18:26:02 UTC 2018
    - 129.4K bytes
    - Viewed (0)
Back to top