Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for deletedPod (0.13 sec)

  1. cni/pkg/nodeagent/net_test.go

    		Netns:    fakens,
    	}
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    	err := netServer.RemovePodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    	assert.Equal(t, ztunnelServer.deletedPods.Load(), 1)
    	assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 1)
    	assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 1)
    	// make sure the uid was taken from cache and netns closed
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. pkg/controller/daemon/daemon_controller.go

    		AddFunc: func(obj interface{}) {
    			dsc.addPod(logger, obj)
    		},
    		UpdateFunc: func(oldObj, newObj interface{}) {
    			dsc.updatePod(logger, oldObj, newObj)
    		},
    		DeleteFunc: func(obj interface{}) {
    			dsc.deletePod(logger, obj)
    		},
    	})
    	dsc.podLister = podInformer.Lister()
    	dsc.podStoreSynced = podInformer.Informer().HasSynced
    
    	nodeInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go

    	if !volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) failed. Expected: <true> Actual: <%v>",
    			expectedVolumeName,
    			volumeExists)
    	}
    
    	//delete the pod and volume manually
    	dswp.desiredStateOfWorld.DeletePod(podName, expectedVolumeName, k8stypes.NodeName(pod.Spec.NodeName))
    
    	//check if the given volume referenced by the pod still exists in dsw
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		s.lookup(s.addrXdsName("127.0.0.6"))[0].Address.GetWorkload().Waypoint.GetAddress().Address,
    		netip.MustParseAddr("10.0.0.2").AsSlice())
    
    	s.deletePod(t, "pod6")
    	s.assertEvent(t, s.podXdsName("pod6"))
    
    	s.deletePod(t, "pod3")
    	s.assertEvent(t, s.podXdsName("pod3"))
    	s.deletePod(t, "pod2")
    	s.assertEvent(t, s.podXdsName("pod2"))
    
    	s.deleteWaypoint(t, "waypoint-ns")
    	s.assertEvent(t, s.podXdsName("pod1"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  5. pkg/controller/deployment/deployment_controller_test.go

    		t.Fatalf("error creating Deployment controller: %v", err)
    	}
    	enqueued := false
    	c.enqueueDeployment = func(d *apps.Deployment) {
    		if d.Name == "foo" {
    			enqueued = true
    		}
    	}
    
    	c.deletePod(logger, pod)
    
    	if !enqueued {
    		t.Errorf("expected deployment %q to be queued after pod deletion", foo.Name)
    	}
    }
    
    // TestPodDeletionDoesntEnqueueRecreateDeployment ensures that the deletion of a pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  6. pkg/controller/disruption/disruption.go

    			return
    		}
    	}
    	logger.V(4).Info("DeletePod called on pod", "pod", klog.KObj(pod))
    	pdb := dc.getPdbForPod(logger, pod)
    	if pdb == nil {
    		logger.V(4).Info("No matching PDB for pod", "pod", klog.KObj(pod))
    		return
    	}
    	logger.V(4).Info("DeletePod -> PDB", "pod", klog.KObj(pod), "podDisruptionBudget", klog.KObj(pdb))
    	dc.enqueuePdb(logger, pdb)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/graph.go

    			e := newDestinationEdge(claimVertex, podVertex, nodeVertex)
    			g.graph.SetEdge(e)
    			g.addEdgeToDestinationIndex_locked(e)
    		}
    	}
    }
    func (g *Graph) DeletePod(name, namespace string) {
    	start := time.Now()
    	defer func() {
    		graphActionsDuration.WithLabelValues("DeletePod").Observe(time.Since(start).Seconds())
    	}()
    	g.lock.Lock()
    	defer g.lock.Unlock()
    	g.deleteVertex_locked(podVertexType, namespace, name)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. pkg/volume/util/recyclerclient/recycler_client_test.go

    func (c *mockRecyclerClient) GetPod(name, namespace string) (*v1.Pod, error) {
    	if c.pod != nil {
    		return c.pod, nil
    	}
    	return nil, fmt.Errorf("pod does not exist")
    }
    
    func (c *mockRecyclerClient) DeletePod(name, namespace string) error {
    	c.deletedCalled = true
    	return nil
    }
    
    func (c *mockRecyclerClient) WatchPod(name, namespace string, stopChannel chan struct{}) (<-chan watch.Event, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_control.go

    	// Now we need to delete MaxUnavailable- unavailablePods
    	// start deleting one by one starting from the highest ordinal first
    	podsToDelete := maxUnavailable - unavailablePods
    
    	deletedPods := 0
    	for target := len(replicas) - 1; target >= updateMin && deletedPods < podsToDelete; target-- {
    
    		// delete the Pod if it is healthy and the revision doesnt match the target
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. pkg/controller/podgc/gc_controller_test.go

    			pod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace: "default",
    					Name:      "testPod",
    				},
    				Spec: v1.PodSpec{
    					NodeName: "deletedNode",
    				},
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    					Conditions: []v1.PodCondition{
    						{
    							Type:   v1.PodReady,
    							Status: v1.ConditionTrue,
    						},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top