Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 113 for fakePod (0.12 sec)

  1. pkg/kubelet/network/dns/dns_other_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package dns
    
    var (
    	defaultResolvConf = "/etc/resolv.conf"
    	// configurer.getHostDNSConfig is faked on Windows, while it is not faked on Linux.
    	fakeGetHostDNSConfigCustom = getHostDNSConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 804 bytes
    - Viewed (0)
  2. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	var pods = []*v1.Pod{
    		st.MakePod().Name("p0").Namespace("ns1").Annotation("annot1", "val1").NominatedNodeName("node1").Obj(),
    		st.MakePod().Name("p1").Namespace("ns1").Annotation("annot", "val").Obj(),
    		st.MakePod().Name("p2").Namespace("ns2").Annotation("annot2", "val2").Annotation("annot3", "val3").NominatedNodeName("node3").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			expectedAttachID: getAttachmentName("test-vol", "attachable", "fakeNode"),
    			expectError:      false,
    		},
    		{
    			name: "failed attach with vol source",
    			makeAttachment: func() *storage.VolumeAttachment {
    
    				testAttachID := getAttachmentName("test-vol", "attachable", "fakeNode")
    				successfulAttachment := makeTestAttachment(testAttachID, "fakeNode", "volSrc01")
    				successfulAttachment.Status.Attached = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		// If nil, use pod PVCs
    		cachePVCs []*v1.PersistentVolumeClaim
    		// If nil, makePod with podPVCs
    		pod *v1.Pod
    
    		// Expected podBindingCache fields
    		expectedBindings []*BindingInfo
    
    		// Expected return values
    		reasons    ConflictReasons
    		shouldFail bool
    	}
    	scenarios := map[string]scenarioType{
    		"no-volumes": {
    			pod: makePod("test-pod").
    				withNamespace("testns").
    				withNodeName("node1").Pod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/ipset/ipset_test.go

    		{"ipset v6.1, protocol version: 6", "v6.1", false},
    		{"ipset v6.19, protocol version: 6", "v6.19", false},
    		{"total junk", "", true},
    	}
    
    	for i := range testCases {
    		fcmd := fakeexec.FakeCmd{
    			CombinedOutputScript: []fakeexec.FakeAction{
    				// ipset version response
    				func() ([]byte, []byte, error) { return []byte(testCases[i].vstring), nil, nil },
    			},
    		}
    
    		fexec := &fakeexec.FakeExec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  6. 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)
  7. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	err = m.containerGC.evictPodLogsDirectories(ctx, true)
    	assert.NoError(t, err)
    	assert.Equal(t, removed, fakeOS.Removes)
    
    	// allSourcesReady == false, pod log directories should not be removed.
    	fakeOS.Removes = []string{}
    	err = m.containerGC.evictPodLogsDirectories(ctx, false)
    	assert.NoError(t, err)
    	assert.Empty(t, fakeOS.Removes)
    }
    
    func TestUnknownStateContainerGC(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. 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)
  9. pkg/api/pod/util_test.go

    			// preStop
    			// container
    			{
    				oldPod := makePod([]api.Container{makeContainer(tc.oldLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				newPod := makePod([]api.Container{makeContainer(tc.newLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				expectPod := makePod([]api.Container{makeContainer(tc.expectLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/preflight/utils_test.go

    		{"command not found", "", errors.New("kubelet not found"), false},
    		{"", "", nil, false},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.output, func(t *testing.T) {
    			fcmd := fakeexec.FakeCmd{
    				OutputScript: []fakeexec.FakeAction{
    					func() ([]byte, []byte, error) { return []byte(tc.output), nil, tc.err },
    				},
    			}
    			fexec := &fakeexec.FakeExec{
    				CommandScript: []fakeexec.FakeCommandAction{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 23 11:33:44 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top