Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getReplicaSetsWithSameController (0.59 sec)

  1. pkg/controller/replicaset/replica_set.go

    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, rsc.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // getReplicaSetsWithSameController returns a list of ReplicaSets with the same
    // owner as the given ReplicaSet.
    func (rsc *ReplicaSetController) getReplicaSetsWithSameController(logger klog.Logger, rs *apps.ReplicaSet) []*apps.ReplicaSet {
    	controllerRef := metav1.GetControllerOf(rs)
    	if controllerRef == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    		},
    	}
    	for _, c := range testCases {
    		for _, r := range c.rss {
    			informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(r)
    		}
    		actualRSs := manager.getReplicaSetsWithSameController(logger, c.rs)
    		var actualRSNames, expectedRSNames []string
    		for _, r := range actualRSs {
    			actualRSNames = append(actualRSNames, r.Name)
    		}
    		for _, r := range c.expectedRSs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top