Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CreatePod (0.19 sec)

  1. pilot/pkg/xds/workload_test.go

    		})
    		ads.ExpectEmptyResponse()
    
    		// Create pod, due to wildcard subscribe we should receive it
    		createPod(s, "pod", "sa", "127.0.0.1", "not-node")
    		expect(ads.ExpectResponse(), "Kubernetes//Pod/default/pod")
    
    		// A new pod should push only that one
    		createPod(s, "pod2", "sa", "127.0.0.2", "node")
    		expect(ads.ExpectResponse(), "Kubernetes//Pod/default/pod2")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    }
    
    func TestHasInitialEventsEndBookmarkAnnotation(t *testing.T) {
    	createPod := func(name string) *example.Pod {
    		return &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: name}}
    	}
    	createAnnotatedPod := func(name, value string) *example.Pod {
    		p := createPod(name)
    		p.Annotations = map[string]string{}
    		p.Annotations[metav1.InitialEventsAnnotationKey] = value
    		return p
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/volume/util/recyclerclient/recycler_client_test.go

    		client := &mockRecyclerClient{
    			events: test.eventSequence,
    			pod:    test.existingPod,
    		}
    		err := internalRecycleVolumeByWatchingPodUntilCompletion(test.createPod.Name, test.createPod, client)
    		receivedError := ""
    		if err != nil {
    			receivedError = err.Error()
    		}
    		if receivedError != test.expectedError {
    			t.Errorf("Test %q failed, expected error %q, got %q", test.name, test.expectedError, receivedError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    	})
    	initTestEnv(t, c.client.Kube(), fx)
    	createPod := func(ip, name string) {
    		addPods(t, c, fx, generatePod(ip, name, "ns", "1", "", map[string]string{}, map[string]string{}))
    	}
    
    	createPod("128.0.0.1", "pod1")
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), []types.NamespacedName{{Name: "pod1", Namespace: "ns"}})
    	events.WaitOrdered("pod1/add", "pod1/update")
    	createPod("128.0.0.1", "pod2")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. pkg/volume/util/recyclerclient/recycler_client.go

    	if err != nil {
    		klog.V(4).Infof("cannot start watcher for pod %s/%s: %v", pod.Namespace, pod.Name, err)
    		return err
    	}
    
    	// Start the pod
    	_, err = recyclerClient.CreatePod(pod)
    	if err != nil {
    		if errors.IsAlreadyExists(err) {
    			deleteErr := recyclerClient.DeletePod(pod.Name, pod.Namespace)
    			if deleteErr != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_pod_control.go

    // with a clientset for writes and listers for reads; for tests we provide stubs.
    type StatefulPodControlObjectManager interface {
    	CreatePod(ctx context.Context, pod *v1.Pod) error
    	GetPod(namespace, podName string) (*v1.Pod, error)
    	UpdatePod(pod *v1.Pod) error
    	DeletePod(pod *v1.Pod) error
    	CreateClaim(claim *v1.PersistentVolumeClaim) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	testContext := genericapirequest.WithNamespace(genericapirequest.NewContext(), "test")
    	destroyFunc, registry := NewTestGenericStoreRegistry(t)
    	registry.EnableGarbageCollection = true
    	defer destroyFunc()
    
    	createPod := func(i int, finalizers []string) *example.Pod {
    		return &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i), Finalizers: finalizers, Generation: initialGeneration},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set_control_test.go

    		revisionInformer.Informer().GetIndexer(),
    		newRequestTracker(0, nil, 0),
    		newRequestTracker(0, nil, 0),
    		newRequestTracker(0, nil, 0),
    	}
    }
    
    func (om *fakeObjectManager) CreatePod(ctx context.Context, pod *v1.Pod) error {
    	defer om.createPodTracker.trackParallelRequests()
    	if err := om.createPodTracker.incWithOptionalError(); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
Back to top