Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for scaleReplicaSetAndRecordEvent (0.24 sec)

  1. pkg/controller/deployment/recreate.go

    	scaled := false
    	for i := range oldRSs {
    		rs := oldRSs[i]
    		// Scaling not required.
    		if *(rs.Spec.Replicas) == 0 {
    			continue
    		}
    		scaledRS, updatedRS, err := dc.scaleReplicaSetAndRecordEvent(ctx, rs, 0, deployment)
    		if err != nil {
    			return false, err
    		}
    		if scaledRS {
    			oldRSs[i] = updatedRS
    			scaled = true
    		}
    	}
    	return scaled, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
Back to top