Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for fake0 (0.04 sec)

  1. pilot/test/xds/fake.go

    		objects = append(objects, o)
    	}
    	return objects, nil
    }
    
    // DisableAuthorizationForSecret makes the authorization check always pass. Should be used only for tests.
    func DisableAuthorizationForSecret(fake *fake.Clientset) {
    	fake.Fake.PrependReactor("create", "subjectaccessreviews", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, &authorizationv1.SubjectAccessReview{
    			Status: authorizationv1.SubjectAccessReviewStatus{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	}
    	fakes := makeFakeContainers(t, m, templates)
    	fakeRuntime.SetFakeContainers(fakes)
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    
    	m.pruneInitContainersBeforeStart(ctx, pod, podStatus)
    	expectedContainers := sets.New[string](fakes[0].Id, fakes[2].Id)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  3. chainable_api.go

    //	db.Where(User{Name: "non_existing"}).Assign(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "fake@fake.org"}
    //
    //	// assign email regardless of if record is found
    //	db.Where(User{Name: "jinzhu"}).Assign(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "jinzhu", Age: 20, Email: "fake@fake.org"}
    //
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    					ObjectMeta: metav1.ObjectMeta{Name: "pod-template-2"},
    					Spec: api.PodSpec{
    						Containers: []api.Container{
    							{
    								Name:  "fake-container1",
    								Image: "fake-image1",
    							},
    							{
    								Name:  "fake-container2",
    								Image: "fake-image2",
    							},
    						},
    					},
    				},
    			},
    
    			options: printers.GenerateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtOriginalPsiProvider.kt

         * for [this]. Otherwise, returns `null`.
         */
        @KaAnalysisApiInternals
        public fun KtDeclaration.getOriginalDeclaration(): KtDeclaration? =
            withValidityAssertion { analysisSession.originalPsiProvider.getOriginalDeclaration(this) }
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. pkg/kube/kclient/client_test.go

    	// Prevent List from succeeding
    	c.Kube().(*fake.Clientset).Fake.PrependReactor("*", "*", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, nil, fmt.Errorf("nope, out of luck")
    	})
    	c.RunAndWait(test.NewStop(t))
    	deployments := kclient.New[*appsv1.Deployment](c)
    	deployments.Start(test.NewStop(t))
    	mt.Assert("controller_sync_errors_total", map[string]string{"cluster": "fake"}, monitortest.AtLeast(1))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			oldObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Node("fake").Obj(),
    			newObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Node("fake").Obj(),
    			enableInPlacePodVerticalScaling: false,
    			expectedHint:                    framework.QueueSkip,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  8. pilot/pkg/model/telemetry_logging_test.go

    				Port:                            9811,
    				AdditionalRequestHeadersToLog:   []string{"fake-request-header1"},
    				AdditionalResponseHeadersToLog:  []string{"fake-response-header1"},
    				AdditionalResponseTrailersToLog: []string{"fake-response-trailer1"},
    				FilterStateObjectsToLog:         fakeFilterStateObjects,
    			},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. pkg/controller/podgc/gc_controller_test.go

    	podList := &v1.PodList{}
    	for _, podItem := range pods {
    		podList.Items = append(podList.Items, *podItem)
    	}
    	nodeList := &v1.NodeList{}
    	for _, nodeItem := range nodes {
    		nodeList.Items = append(nodeList.Items, *nodeItem)
    	}
    	return fake.NewSimpleClientset(nodeList, podList)
    }
    
    func getDeletedPodNames(client *fake.Clientset) sets.Set[string] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    		result: make(chan Event, size),
    	}
    }
    
    // Stop implements Interface.Stop().
    func (f *FakeWatcher) Stop() {
    	f.Lock()
    	defer f.Unlock()
    	if !f.stopped {
    		klog.V(4).Infof("Stopping fake watcher.")
    		close(f.result)
    		f.stopped = true
    	}
    }
    
    func (f *FakeWatcher) IsStopped() bool {
    	f.Lock()
    	defer f.Unlock()
    	return f.stopped
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
Back to top