Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for PodUpdate (0.12 sec)

  1. pkg/kubelet/config/apiserver.go

    	send := func(objs []interface{}) {
    		var pods []*v1.Pod
    		for _, o := range objs {
    			pods = append(pods, o.(*v1.Pod))
    		}
    		updates <- kubetypes.PodUpdate{Pods: pods, Op: kubetypes.SET, Source: kubetypes.ApiserverSource}
    	}
    	r := cache.NewReflector(lw, &v1.Pod{}, cache.NewUndeltaStore(send, cache.MetaNamespaceKeyFunc), 0)
    	go r.Run(wait.NeverStop)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 19:46:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. pkg/kubelet/types/pod_update.go

    	// AllSource identifies updates from all sources.
    	AllSource = "*"
    )
    
    // NamespaceDefault is a string representing the default namespace.
    const NamespaceDefault = metav1.NamespaceDefault
    
    // PodUpdate defines an operation sent on the channel. You can add or remove single services by
    // sending an array of size one and Op == ADD|REMOVE (with REMOVE, only the ID is required).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. pkg/kubelet/config/file_linux.go

    	_, err := os.Stat(s.path)
    	if err != nil {
    		if !os.IsNotExist(err) {
    			return err
    		}
    		// Emit an update with an empty PodList to allow FileSource to be marked as seen
    		s.updates <- kubetypes.PodUpdate{Pods: []*v1.Pod{}, Op: kubetypes.SET, Source: kubetypes.FileSource}
    		return &retryableError{"path does not exist, ignoring"}
    	}
    
    	w, err := fsnotify.NewWatcher()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 17:27:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. pkg/kubelet/runonce.go

    type RunPodResult struct {
    	Pod *v1.Pod
    	Err error
    }
    
    // RunOnce polls from one configuration update and run the associated pods.
    func (kl *Kubelet) RunOnce(updates <-chan kubetypes.PodUpdate) ([]RunPodResult, error) {
    	ctx := context.Background()
    	// Setup filesystem directories.
    	if err := kl.setupDataDirs(); err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. pkg/controller/endpointslice/endpointslice_controller_test.go

    func TestPodUpdatesBatching(t *testing.T) {
    	t.Parallel()
    
    	resourceVersion := 1
    	type podUpdate struct {
    		delay   time.Duration
    		podName string
    		podIP   string
    	}
    
    	tests := []struct {
    		name             string
    		batchPeriod      time.Duration
    		podsCount        int
    		updates          []podUpdate
    		finalDelay       time.Duration
    		wantRequestCount int
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	podInformer.Informer().AddEventHandler(kcache.ResourceEventHandlerFuncs{
    		AddFunc: func(obj interface{}) {
    			adc.podAdd(logger, obj)
    		},
    		UpdateFunc: func(oldObj, newObj interface{}) {
    			adc.podUpdate(logger, oldObj, newObj)
    		},
    		DeleteFunc: func(obj interface{}) {
    			adc.podDelete(logger, obj)
    		},
    	})
    
    	// This custom indexer will index pods by its PVC keys. Then we don't need
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. pkg/controller/endpoint/endpoints_controller_test.go

    func TestPodUpdatesBatching(t *testing.T) {
    	type podUpdate struct {
    		delay   time.Duration
    		podName string
    		podIP   string
    	}
    
    	tests := []struct {
    		name             string
    		batchPeriod      time.Duration
    		podsCount        int
    		updates          []podUpdate
    		finalDelay       time.Duration
    		wantRequestCount int
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/queue/scheduling_queue.go

    			if queue != unschedulablePods {
    				logger.V(5).Info("Pod moved to an internal scheduling queue because the Pod is updated", "pod", klog.KObj(newPod), "event", PodUpdate, "queue", queue)
    				p.unschedulablePods.delete(usPodInfo.Pod, gated)
    			}
    			if queue == activeQ {
    				p.cond.Broadcast()
    			}
    			return nil
    		}
    		if isPodUpdated(oldPod, newPod) {
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit.go

    func (f *Fit) EventsToRegister() []framework.ClusterEventWithHint {
    	podActionType := framework.Delete
    	if f.enableInPlacePodVerticalScaling {
    		// If InPlacePodVerticalScaling (KEP 1287) is enabled, then PodUpdate event should be registered
    		// for this plugin since a Pod update may free up resources that make other Pods schedulable.
    		podActionType |= framework.Update
    	}
    	return []framework.ClusterEventWithHint{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    	ListenAndServeReadOnly(address net.IP, port uint, tp trace.TracerProvider)
    	ListenAndServePodResources()
    	Run(<-chan kubetypes.PodUpdate)
    	RunOnce(<-chan kubetypes.PodUpdate) ([]RunPodResult, error)
    }
    
    // Dependencies is a bin for things we might consider "injected dependencies" -- objects constructed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top