Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cleanupDeployment (0.19 sec)

  1. pkg/controller/deployment/recreate.go

    	}
    
    	// scale up new replica set.
    	if _, err := dc.scaleUpNewReplicaSetForRecreate(ctx, newRS, d); err != nil {
    		return err
    	}
    
    	if util.DeploymentComplete(d, &d.Status) {
    		if err := dc.cleanupDeployment(ctx, oldRSs, d); err != nil {
    			return err
    		}
    	}
    
    	// Sync deployment status.
    	return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  2. pkg/controller/deployment/sync.go

    	}
    	return scaled, rs, err
    }
    
    // cleanupDeployment is responsible for cleaning up a deployment ie. retains all but the latest N old replica sets
    // where N=d.Spec.RevisionHistoryLimit. Old replica sets are older versions of the podtemplate of a deployment kept
    // around by default 1) for historical reasons and 2) for the ability to rollback a deployment.
    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/sync_test.go

    		t.Logf(" &test.revisionHistoryLimit: %d", test.revisionHistoryLimit)
    		d := newDeployment("foo", 1, &test.revisionHistoryLimit, nil, nil, map[string]string{"foo": "bar"})
    		controller.cleanupDeployment(ctx, test.oldRSs, d)
    
    		gotDeletions := 0
    		for _, action := range fake.Actions() {
    			if action.GetVerb() == "delete" {
    				gotDeletions++
    			}
    		}
    		if gotDeletions != test.expectedDeletions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. pkg/controller/deployment/rolling.go

    	if err != nil {
    		return err
    	}
    	if scaledDown {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	if deploymentutil.DeploymentComplete(d, &d.Status) {
    		if err := dc.cleanupDeployment(ctx, oldRSs, d); err != nil {
    			return err
    		}
    	}
    
    	// Sync deployment status
    	return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top