Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getRollbackTo (0.14 sec)

  1. pkg/controller/deployment/rollback.go

    	logger := klog.FromContext(ctx)
    	newRS, allOldRSs, err := dc.getAllReplicaSetsAndSyncRevision(ctx, d, rsList, true)
    	if err != nil {
    		return err
    	}
    
    	allRSs := append(allOldRSs, newRS)
    	rollbackTo := getRollbackTo(d)
    	// If rollback revision is 0, rollback to the last revision
    	if rollbackTo.Revision == 0 {
    		if rollbackTo.Revision = deploymentutil.LastRevision(logger, allRSs); rollbackTo.Revision == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. pkg/controller/deployment/sync.go

    		// so we can abort this resync
    		return err
    	}
    
    	// Clean up the deployment when it's paused and no rollback is in flight.
    	if d.Spec.Paused && getRollbackTo(d) == nil {
    		if err := dc.cleanupDeployment(ctx, oldRSs, d); err != nil {
    			return err
    		}
    	}
    
    	allRSs := append(oldRSs, newRS)
    	return dc.syncDeploymentStatus(ctx, allRSs, newRS, d)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  3. pkg/controller/deployment/deployment_controller.go

    	// revision so we should ensure that we won't proceed to update replica sets until we
    	// make sure that the deployment has cleaned up its rollback spec in subsequent enqueues.
    	if getRollbackTo(d) != nil {
    		return dc.rollback(ctx, d, rsList)
    	}
    
    	scalingEvent, err := dc.isScalingEvent(ctx, d, rsList)
    	if err != nil {
    		return err
    	}
    	if scalingEvent {
    		return dc.sync(ctx, d, rsList)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top