Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 409 for Relist (0.2 sec)

  1. pkg/kubelet/pleg/generic_test.go

    			},
    		}},
    	}
    	// Relist and drain the events from the channel.
    	for i := 0; i < numRelists; i++ {
    		pleg.Relist()
    		getEventsFromChannel(ch)
    	}
    
    	// Container c2 was stopped and removed between relists. We should report
    	// the event.
    	runtime.AllPodList = []*containertest.FakePod{}
    	pleg.Relist()
    	expected := []*PodLifecycleEvent{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  2. pkg/kubelet/pleg/generic.go

    			// error occurs during the inspection, we want PLEG to retry again
    			// in the next relist. To achieve this, we do not update the
    			// associated podRecord of the pod, so that the change will be
    			// detect again in the next relist.
    			// TODO: If many pods changed during the same relist period,
    			// inspecting the pod and getting the PodStatus to update the cache
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/evented.go

    func (e *EventedPLEG) Watch() chan *PodLifecycleEvent {
    	return e.eventChannel
    }
    
    // Relist relists all containers using GenericPLEG
    func (e *EventedPLEG) Relist() {
    	e.genericPleg.Relist()
    }
    
    // Start starts the Evented PLEG
    func (e *EventedPLEG) Start() {
    	e.runningMu.Lock()
    	defer e.runningMu.Unlock()
    	if isEventedPLEGInUse() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/controller/deployment/deployment_controller.go

    	if err != nil {
    		return err
    	}
    	if scalingEvent {
    		return dc.sync(ctx, d, rsList)
    	}
    
    	switch d.Spec.Strategy.Type {
    	case apps.RecreateDeploymentStrategyType:
    		return dc.rolloutRecreate(ctx, d, rsList, podMap)
    	case apps.RollingUpdateDeploymentStrategyType:
    		return dc.rolloutRolling(ctx, d, rsList)
    	}
    	return fmt.Errorf("unexpected deployment strategy type: %s", d.Spec.Strategy.Type)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    			ResourceVersion: rv,
    		}
    		w.eventHandler(wcEvent)
    	}
    	metrics.RecordResourceVersion(w.groupResource.String(), rv)
    }
    
    // List returns list of pointers to <storeElement> objects.
    func (w *watchCache) List() []interface{} {
    	return w.store.List()
    }
    
    // waitUntilFreshAndBlock waits until cache is at least as fresh as given <resourceVersion>.
    // NOTE: This function acquired lock and doesn't release it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/cronjob_controllerv2.go

    			// We found an unfinished job that has us as the parent, but it is not in our Active list.
    			// This could happen if we crashed right after creating the Job and before updating the status,
    			// or if our jobs list is newer than our cj status after a relist, or if someone intentionally created
    			// a job that they wanted us to adopt.
    		} else if found && jobutil.IsJobFinished(j) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    	opts = append([]setupOption{withDefaults}, opts...)
    	for _, opt := range opts {
    		opt(&setupOpts)
    	}
    
    	server, etcdStorage := newEtcdTestStorage(t, etcd3testing.PathPrefix())
    	// Inject one list error to make sure we test the relist case.
    	wrappedStorage := &storagetesting.StorageInjectingListErrors{
    		Interface: etcdStorage,
    		Errors:    1,
    	}
    
    	config := Config{
    		Storage:        wrappedStorage,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set.go

    func (ssc *StatefulSetController) deletePod(logger klog.Logger, obj interface{}) {
    	pod, ok := obj.(*v1.Pod)
    
    	// When a delete is dropped, the relist will notice a pod in the store not
    	// in the list, leading to the insertion of a tombstone object which contains
    	// the deleted key/value. Note that this value might be stale.
    	if !ok {
    		tombstone, ok := obj.(cache.DeletedFinalStateUnknown)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. pkg/controller/disruption/disruption.go

    	}
    }
    
    func (dc *DisruptionController) deletePod(logger klog.Logger, obj interface{}) {
    	pod, ok := obj.(*v1.Pod)
    	// When a delete is dropped, the relist will notice a pod in the store not
    	// in the list, leading to the insertion of a tombstone object which contains
    	// the deleted key/value. Note that this value might be stale. If the pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set.go

    		return nil
    	}
    
    	// list all pods to include the pods that don't match the rs`s selector
    	// anymore but has the stale controller ref.
    	// TODO: Do the List and Filter in a single pass, or use an index.
    	allPods, err := rsc.podLister.Pods(rs.Namespace).List(labels.Everything())
    	if err != nil {
    		return err
    	}
    	// Ignore inactive pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top