Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 325 for MaxUnavailable (0.71 sec)

  1. pkg/controller/deployment/rolling_test.go

    		newRS := rs("foo-v2", test.newReplicas, nil, noTimestamp)
    		oldRS := rs("foo-v2", test.oldReplicas, nil, noTimestamp)
    		allRSs := []*apps.ReplicaSet{newRS, oldRS}
    		maxUnavailable := intstr.FromInt32(0)
    		deployment := newDeployment("foo", test.deploymentReplicas, nil, &test.maxSurge, &maxUnavailable, map[string]string{"foo": "bar"})
    		fake := fake.Clientset{}
    		controller := &DeploymentController{
    			client:        &fake,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1beta2/defaults.go

    			rollingUpdate := appsv1beta2.RollingUpdateDeployment{}
    			strategy.RollingUpdate = &rollingUpdate
    		}
    		if strategy.RollingUpdate.MaxUnavailable == nil {
    			// Set default MaxUnavailable as 25% by default.
    			maxUnavailable := intstr.FromString("25%")
    			strategy.RollingUpdate.MaxUnavailable = &maxUnavailable
    		}
    		if strategy.RollingUpdate.MaxSurge == nil {
    			// Set default MaxSurge as 25% by default.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. pkg/controller/daemon/update_test.go

    	intStr := intstr.FromInt32(int32(maxUnavailable))
    	ds.Spec.UpdateStrategy.RollingUpdate = &apps.RollingUpdateDaemonSet{MaxUnavailable: &intStr}
    	err = manager.dsStore.Update(ds)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// new pods are not ready numUnavailable == maxUnavailable
    	clearExpectations(t, manager, ds, podControl)
    	expectSyncDaemonSets(t, manager, ds, podControl, 0, maxUnavailable, 0)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1/defaults.go

    			rollingUpdate := appsv1.RollingUpdateDeployment{}
    			strategy.RollingUpdate = &rollingUpdate
    		}
    		if strategy.RollingUpdate.MaxUnavailable == nil {
    			// Set default MaxUnavailable as 25% by default.
    			maxUnavailable := intstr.FromString("25%")
    			strategy.RollingUpdate.MaxUnavailable = &maxUnavailable
    		}
    		if strategy.RollingUpdate.MaxSurge == nil {
    			// Set default MaxSurge as 25% by default.
    			maxSurge := intstr.FromString("25%")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. pkg/apis/apps/v1beta2/defaults_test.go

    	maxUnavailable, err := intstr.GetScaledValueFromIntOrPercent(d.Spec.Strategy.RollingUpdate.MaxUnavailable, int(*(d.Spec.Replicas)), false)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if *(d.Spec.Replicas)-int32(maxUnavailable) <= 0 {
    		t.Fatalf("the default value of maxUnavailable can lead to no active replicas during rolling update")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/apis/apps/v1beta1/defaults_test.go

    	maxUnavailable, err := intstr.GetScaledValueFromIntOrPercent(d.Spec.Strategy.RollingUpdate.MaxUnavailable, int(*(d.Spec.Replicas)), false)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if *(d.Spec.Replicas)-int32(maxUnavailable) <= 0 {
    		t.Fatalf("the default value of maxUnavailable can lead to no active replicas during rolling update")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. pkg/apis/extensions/v1beta1/defaults.go

    			updateStrategy.RollingUpdate = &rollingUpdate
    		}
    		if updateStrategy.RollingUpdate.MaxUnavailable == nil {
    			// Set default MaxUnavailable as 1 by default.
    			maxUnavailable := intstr.FromInt32(1)
    			updateStrategy.RollingUpdate.MaxUnavailable = &maxUnavailable
    		}
    		if updateStrategy.RollingUpdate.MaxSurge == nil {
    			// Set default MaxSurge as 0 by default.
    			maxSurge := intstr.FromInt32(0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. pkg/apis/apps/v1/defaults_test.go

    	maxUnavailable, err := intstr.GetScaledValueFromIntOrPercent(d.Spec.Strategy.RollingUpdate.MaxUnavailable, int(*(d.Spec.Replicas)), false)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if *(d.Spec.Replicas)-int32(maxUnavailable) <= 0 {
    		t.Fatalf("the default value of maxUnavailable can lead to no active replicas during rolling update")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. pkg/apis/apps/v1beta1/defaults.go

    			rollingUpdate := appsv1beta1.RollingUpdateDeployment{}
    			strategy.RollingUpdate = &rollingUpdate
    		}
    		if strategy.RollingUpdate.MaxUnavailable == nil {
    			// Set default MaxUnavailable as 25% by default.
    			maxUnavailable := intstr.FromString("25%")
    			strategy.RollingUpdate.MaxUnavailable = &maxUnavailable
    		}
    		if strategy.RollingUpdate.MaxSurge == nil {
    			// Set default MaxSurge as 25% by default.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/rollingupdatedeployment.go

    // RollingUpdateDeploymentApplyConfiguration represents an declarative configuration of the RollingUpdateDeployment type for use
    // with apply.
    type RollingUpdateDeploymentApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top