Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsRollingUpdate (0.24 sec)

  1. pkg/controller/deployment/util/deployment_util.go

    func MinAvailable(deployment *apps.Deployment) int32 {
    	if !IsRollingUpdate(deployment) {
    		return int32(0)
    	}
    	return *(deployment.Spec.Replicas) - MaxUnavailable(*deployment)
    }
    
    // MaxSurge returns the maximum surge pods a rolling deployment can take.
    func MaxSurge(deployment apps.Deployment) int32 {
    	if !IsRollingUpdate(&deployment) {
    		return int32(0)
    	}
    	// Error caught by validation
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  2. pkg/controller/deployment/sync.go

    	}
    
    	// There are old replica sets with pods and the new replica set is not saturated.
    	// We need to proportionally scale all replica sets (new and old) in case of a
    	// rolling deployment.
    	if deploymentutil.IsRollingUpdate(deployment) {
    		allRSs := controller.FilterActiveReplicaSets(append(oldRSs, newRS))
    		allRSsReplicas := deploymentutil.GetReplicaCountForReplicaSets(allRSs)
    
    		allowedSize := int32(0)
    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