Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reconcileNewReplicaSet (0.16 sec)

  1. pkg/controller/deployment/rolling.go

    	newRS, oldRSs, err := dc.getAllReplicaSetsAndSyncRevision(ctx, d, rsList, true)
    	if err != nil {
    		return err
    	}
    	allRSs := append(oldRSs, newRS)
    
    	// Scale up, if we can.
    	scaledUp, err := dc.reconcileNewReplicaSet(ctx, allRSs, newRS, d)
    	if err != nil {
    		return err
    	}
    	if scaledUp {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	// Scale down, if we can.
    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

    			client:        &fake,
    			eventRecorder: &record.FakeRecorder{},
    		}
    		_, ctx := ktesting.NewTestContext(t)
    		ctx, cancel := context.WithCancel(ctx)
    		defer cancel()
    		scaled, err := controller.reconcileNewReplicaSet(ctx, allRSs, newRS, deployment)
    		if err != nil {
    			t.Errorf("unexpected error: %v", err)
    			continue
    		}
    		if !test.scaleExpected {
    			if scaled || len(fake.Actions()) > 0 {
    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