Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for fakePod (0.19 sec)

  1. pkg/kubelet/server/stats/volume_stat_calculator_test.go

    	volumes := map[string]volume.Volume{vol0: &fakeVolume{}, vol1: &fakeVolume{}, vol3: &fakeVolume{}}
    	mockStats.EXPECT().ListVolumesForPod(fakePod.UID).Return(volumes, true)
    	blockVolumes := map[string]volume.BlockVolume{vol2: &fakeBlockVolume{}}
    	mockStats.EXPECT().ListBlockVolumesForPod(fakePod.UID).Return(blockVolumes, true)
    
    	eventStore := make(chan string, 1)
    	fakeEventRecorder := record.FakeRecorder{
    		Events: eventStore,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_dryrun_test.go

    	}
    }
    
    func buildFakeDryRunPod() *corev1.Pod {
    	app := corev1.Container{Name: "test"}
    	proxy := corev1.Container{Name: "istio-proxy"}
    	validate := corev1.Container{Name: "istio-validate"}
    	fakePod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Pod",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:        testPodName,
    			Namespace:   testNSName,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. pkg/probe/exec/exec_test.go

    func (f *FakeCmd) SetStdout(out io.Writer) {
    	f.writer = out
    }
    
    func (f *FakeCmd) SetStderr(out io.Writer) {
    	f.writer = out
    }
    
    func (f *FakeCmd) SetEnv(env []string) {}
    
    func (f *FakeCmd) Stop() {}
    
    func (f *FakeCmd) Start() error {
    	if f.writer != nil {
    		f.writer.Write(f.out)
    		return f.err
    	}
    	return f.err
    }
    
    func (f *FakeCmd) Wait() error { return nil }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go

    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			oldObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			newObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"queue-on-gates-become-empty": {
    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			oldPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		{
    			name:         "update a pod from match to non-match the pod affinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/rest/delete_test.go

    				pod:     makePod(0),
    				options: makeOption(2),
    			},
    			// want 0
    			wantDeletionGracePeriodSeconds: utilpointer.Int64(0),
    			wantGracePeriodSeconds:         utilpointer.Int64(2),
    			wantGraceful:                   false,
    			wantGracefulPending:            false,
    		},
    
    		{
    			name: "when DeletionGracePeriodSeconds=1, GracePeriodSeconds=-1",
    			args: args{
    				pod:     makePod(1),
    				options: makeOption(-1),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 11:44:07 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/gotoolchain_path.txt

    [short] skip
    
    env TESTGO_VERSION=go1.21pre3
    
    # Compile a fake toolchain to put in the path under various names.
    env GOTOOLCHAIN=
    mkdir $WORK/bin
    go build -o $WORK/bin/go1.50.0$GOEXE ./fakego.go  # adds .exe extension implicitly on Windows
    
    [!GOOS:plan9] env PATH=$WORK/bin
    [GOOS:plan9] env path=$WORK/bin
    
    go version
    stdout go1.21pre3
    
    # GOTOOLCHAIN=go1.50.0
    env GOTOOLCHAIN=go1.50.0
    ! go version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 22:21:42 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. pkg/controller/volume/ephemeral/controller_test.go

    	testPodUID          = types.UID("uidpod1")
    	otherNamespace      = "not-my-namespace"
    	ephemeralVolumeName = "ephemeral-volume"
    
    	testPod               = makePod(testPodName, testNamespace, testPodUID)
    	testPodWithEphemeral  = makePod(testPodName, testNamespace, testPodUID, *makeEphemeralVolume(ephemeralVolumeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    		return server, storage
    	}
    	server, etcdStorage := newEtcdTestStorage(t, "")
    	defer server.Terminate(t)
    	versioner := storage.APIObjectVersioner{}
    
    	makePod := func(name string) *example.Pod {
    		return &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{Namespace: "ns", Name: name},
    		}
    	}
    	createPod := func(obj *example.Pod) *example.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. pkg/test/framework/components/environment/kube/fake.go

    // FakeEnvironment for testing.
    type FakeEnvironment struct {
    	Name        string
    	NumClusters int
    	IDValue     string
    }
    
    func (f FakeEnvironment) ID() resource.ID {
    	return resource.FakeID(f.IDValue)
    }
    
    func (f FakeEnvironment) IsMultiCluster() bool {
    	return false
    }
    
    func (f FakeEnvironment) IsMultiNetwork() bool {
    	return false
    }
    
    func (f FakeEnvironment) EnvironmentName() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top