Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 113 for fakePod (0.47 sec)

  1. pkg/volume/csi/csi_test.go

    						Name: test.driver,
    					},
    					Spec: *test.driverSpec,
    				}
    				objs = append(objs, driverInfo)
    			}
    			objs = append(objs, &api.Node{
    				ObjectMeta: meta.ObjectMeta{
    					Name: "fakeNode",
    				},
    				Spec: api.NodeSpec{},
    			})
    
    			client := fakeclient.NewSimpleClientset(objs...)
    
    			factory := informers.NewSharedInformerFactory(client, time.Hour /* disable resync */)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/host_stats_provider_fake.go

    }
    
    // NewFakeHostStatsProvider provides a way to test with fake host statistics
    func NewFakeHostStatsProvider() HostStatsProvider {
    	return &fakeHostStatsProvider{
    		osInterface: &kubecontainertest.FakeOS{},
    	}
    }
    
    // NewFakeHostStatsProviderWithData provides a way to test with fake host statistics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. pilot/pkg/autoregistration/controller_test.go

    		// stop1 should be killed early, as part of test
    		if !stopped1 {
    			close(stop1)
    		}
    	}()
    	defer close(stop2)
    	go c1.Run(stop1)
    	go c2.Run(stop2)
    	go store.Run(stop2)
    
    	n := fakeNode("reg1", "zone1", "subzone1")
    
    	var p1conn1, p1conn2 *fakeConn
    	p := fakeProxy("1.2.3.4", wgA, "nw1", "sa-a")
    	p.Locality = n.Locality
    
    	var p2conn1 *fakeConn
    	p2 := fakeProxy("1.2.3.4", wgA, "nw2", "sa-a")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Nil(err)
    
    	testPods := []*v1.Pod{
    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res1.resourceQuantity,
    			v1.ResourceName("cpu"):             res1.resourceQuantity,
    			v1.ResourceName(res2.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_node_status_test.go

    }
    
    func TestNodeStatusHasChanged(t *testing.T) {
    	fakeNow := metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
    	fakeFuture := metav1.Time{Time: fakeNow.Time.Add(time.Minute)}
    	readyCondition := v1.NodeCondition{
    		Type:               v1.NodeReady,
    		Status:             v1.ConditionTrue,
    		LastHeartbeatTime:  fakeNow,
    		LastTransitionTime: fakeNow,
    	}
    	readyConditionAtDiffHearbeatTime := v1.NodeCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go

    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	tf "k8s.io/kubernetes/pkg/scheduler/testing/framework"
    )
    
    func createPodWithVolume(pod, pvc string) *v1.Pod {
    	return st.MakePod().Name(pod).Namespace(metav1.NamespaceDefault).PVC(pvc).Obj()
    }
    
    func TestSingleZone(t *testing.T) {
    	pvLister := tf.PersistentVolumeLister{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 05:17:04 UTC 2023
    - 20K bytes
    - Viewed (0)
  7. pkg/kubelet/runonce_test.go

    		mirrorPodClient:  podtest.NewFakeMirrorClient(),
    		podManager:       podManager,
    		podWorkers:       &fakePodWorkers{},
    		os:               &containertest.FakeOS{},
    		containerRuntime: fakeRuntime,
    		reasonCache:      NewReasonCache(),
    		clock:            clock.RealClock{},
    		kubeClient:       &fake.Clientset{},
    		hostname:         testKubeletHostname,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/apiclient/dryrunclient.go

    					// Print the marshalled object format with one tab indentation
    					objBytes, err := opts.MarshalFunc(obj, action.GetResource().GroupVersion())
    					if err == nil {
    						fmt.Println("[dryrun] Returning faked GET response:")
    						PrintBytesWithLinePrefix(opts.Writer, objBytes, "\t")
    					}
    				}
    
    				return handled, obj, err
    			},
    		},
    		// Let the DryRunGetter implementation take care of all GET requests.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	}
    	fakeStatsSlice := []*volume.Metrics{containerLogStats0, containerLogStats1}
    	fakeOS := &containertest.FakeOS{}
    
    	freeRootfsInodes := rootfsInodesFree
    	totalRootfsInodes := rootfsInodes
    	rootfs := cadvisorapiv2.FsInfo{
    		Capacity:   rootfsCapacity,
    		Available:  rootfsAvailable,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    			Kind:      "ResourceClassParameters",
    			APIGroup:  "example.com",
    		},
    	}
    
    	podWithClaimName = st.MakePod().Name(podName).Namespace(namespace).
    				UID(podUID).
    				PodResourceClaims(v1.PodResourceClaim{Name: resourceName, Source: v1.ClaimSource{ResourceClaimName: &claimName}}).
    				Obj()
    	otherPodWithClaimName = st.MakePod().Name(podName).Namespace(namespace).
    				UID(podUID + "-II").
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
Back to top