Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReplicaSetsBySizeOlder (0.17 sec)

  1. pkg/controller/controller_utils.go

    }
    
    // ReplicaSetsBySizeOlder sorts a list of ReplicaSet by size in descending order, using their creation timestamp or name as a tie breaker.
    // By using the creation timestamp, this sorts from old to new replica sets.
    type ReplicaSetsBySizeOlder []*apps.ReplicaSet
    
    func (o ReplicaSetsBySizeOlder) Len() int      { return len(o) }
    func (o ReplicaSetsBySizeOlder) Swap(i, j int) { o[i], o[j] = o[j], o[i] }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  2. pkg/controller/deployment/sync.go

    		switch {
    		case deploymentReplicasToAdd > 0:
    			sort.Sort(controller.ReplicaSetsBySizeNewer(allRSs))
    			scalingOperation = "up"
    
    		case deploymentReplicasToAdd < 0:
    			sort.Sort(controller.ReplicaSetsBySizeOlder(allRSs))
    			scalingOperation = "down"
    		}
    
    		// Iterate over all active replica sets and estimate proportions for each of them.
    		// The absolute value of deploymentReplicasAdded should never exceed the absolute
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
Back to top