Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDaemonPods (0.12 sec)

  1. pkg/controller/daemon/daemon_controller.go

    			dsc.enqueueDaemonSet(ds)
    		}
    	}
    }
    
    // getDaemonPods returns daemon pods owned by the given ds.
    // This also reconciles ControllerRef by adopting/orphaning.
    // Note that returned Pods are pointers to objects in the cache.
    // If you want to modify one, you need to deep-copy it first.
    func (dsc *DaemonSetsController) getDaemonPods(ctx context.Context, ds *apps.DaemonSet) ([]*v1.Pod, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  2. pkg/controller/daemon/update.go

    	for _, cur := range curHistories {
    		if cur.Revision >= maxRevision {
    			keepCur = cur
    			maxRevision = cur.Revision
    		}
    	}
    	// Relabel pods before dedup
    	pods, err := dsc.getDaemonPods(ctx, ds)
    	if err != nil {
    		return nil, err
    	}
    	for _, pod := range pods {
    		if pod.Labels[apps.DefaultDaemonSetUniqueLabelKey] != keepCur.Labels[apps.DefaultDaemonSetUniqueLabelKey] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top