Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 52 for fakePod (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/kubemark/hollow_kubelet.go

    		RemoteRuntimeService:      runtimeService,
    		RemoteImageService:        imageService,
    		CAdvisorInterface:         cadvisorInterface,
    		Cloud:                     nil,
    		OSInterface:               &containertest.FakeOS{},
    		ContainerManager:          containerManager,
    		VolumePlugins:             volumePlugins(),
    		TLSOptions:                nil,
    		OOMAdjuster:               oom.NewFakeOOMAdjuster(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:10:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. src/net/ipsock_posix.go

    // IPv6 support too. So probe the kernel to figure it out.
    func (p *ipStackCapabilities) probe() {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		// Both ipv4 and ipv6 are faked; see net_fake.go.
    		p.ipv4Enabled = true
    		p.ipv6Enabled = true
    		p.ipv4MappedIPv6Enabled = true
    		return
    	}
    
    	s, err := sysSocket(syscall.AF_INET, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
    	switch err {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    		"|http|host-3.dns-is-faked.golang:" + port,
    	}
    	if got := tr.IdleConnKeysForTesting(); !reflect.DeepEqual(got, want) {
    		t.Fatalf("idle conn keys mismatch.\n got: %q\nwant: %q\n", got, want)
    	}
    
    	// Now hitting the 5th host should kick out the first host:
    	hitHost(4)
    	want = []string{
    		"|http|host-1.dns-is-faked.golang:" + port,
    		"|http|host-2.dns-is-faked.golang:" + port,
    		"|http|host-3.dns-is-faked.golang:" + port,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    	}{{
    		expectError: false,
    		pod:         makePod("nil-ips", "ns", nil),
    	}, {
    		expectError: false,
    		pod:         makePod("empty-podips-list", "ns", []core.PodIP{}),
    	}, {
    		expectError: false,
    		pod:         makePod("single-ip-family-6", "ns", []core.PodIP{{IP: "::1"}}),
    	}, {
    		expectError: false,
    		pod:         makePod("single-ip-family-4", "ns", []core.PodIP{{IP: "1.1.1.1"}}),
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/wrappers.go

    	}
    	c.Container.Resources = v1.ResourceRequirements{
    		Limits: res,
    	}
    	return c
    }
    
    // PodWrapper wraps a Pod inside.
    type PodWrapper struct{ v1.Pod }
    
    // MakePod creates a Pod wrapper.
    func MakePod() *PodWrapper {
    	return &PodWrapper{v1.Pod{}}
    }
    
    // Obj returns the inner Pod.
    func (p *PodWrapper) Obj() *v1.Pod {
    	return &p.Pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	memoryCapacityQuantity := resource.MustParse(fakeNodeAllocatableMemory)
    	machineInfo := &cadvisorapi.MachineInfo{
    		MemoryCapacity: uint64(memoryCapacityQuantity.Value()),
    	}
    	osInterface := &containertest.FakeOS{}
    	manager, err := newFakeKubeRuntimeManager(fakeRuntimeService, fakeImageService, machineInfo, osInterface, &containertest.FakeRuntimeHelper{}, keyring, noopoteltrace.NewTracerProvider().Tracer(""))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/preflight/checks_test.go

    	}
    
    	for _, tc := range cases {
    		t.Run(tc.kubeletVersion, func(t *testing.T) {
    			fcmd := fakeexec.FakeCmd{
    				OutputScript: []fakeexec.FakeAction{
    					func() ([]byte, []byte, error) { return []byte("Kubernetes " + tc.kubeletVersion), nil, nil },
    				},
    			}
    			fexec := &fakeexec.FakeExec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top