Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cleanupUnhealthyReplicas (0.2 sec)

  1. pkg/controller/deployment/rolling.go

    	totalScaledDown := cleanupCount + scaledDownCount
    	return totalScaledDown > 0, nil
    }
    
    // cleanupUnhealthyReplicas will scale down old replica sets with unhealthy replicas, so that all unhealthy replicas will be deleted.
    func (dc *DeploymentController) cleanupUnhealthyReplicas(ctx context.Context, oldRSs []*apps.ReplicaSet, deployment *apps.Deployment, maxCleanupCount int32) ([]*apps.ReplicaSet, int32, error) {
    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)
    		_, cleanupCount, err := controller.cleanupUnhealthyReplicas(ctx, oldRSs, deployment, int32(test.maxCleanupCount))
    		if err != nil {
    			t.Errorf("unexpected error: %v", err)
    			continue
    		}
    		if int(cleanupCount) != test.cleanupCountExpected {
    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