Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reconcileOldReplicaSets (0.29 sec)

  1. pkg/controller/deployment/rolling.go

    	if err != nil {
    		return err
    	}
    	if scaledUp {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	// Scale down, if we can.
    	scaledDown, err := dc.reconcileOldReplicaSets(ctx, allRSs, controller.FilterActiveReplicaSets(oldRSs), newRS, d)
    	if err != nil {
    		return err
    	}
    	if scaledDown {
    		// Update DeploymentStatus
    		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)
  2. pkg/controller/deployment/rolling_test.go

    		controller := &DeploymentController{
    			client:        &fakeClientset,
    			eventRecorder: &record.FakeRecorder{},
    		}
    		_, ctx := ktesting.NewTestContext(t)
    		scaled, err := controller.reconcileOldReplicaSets(ctx, allRSs, oldRSs, newRS, deployment)
    		if err != nil {
    			t.Errorf("unexpected error: %v", err)
    			continue
    		}
    		if !test.scaleExpected && scaled {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
Back to top