Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for MaxUnavailable (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/registry/apps/statefulset/strategy_test.go

    		},
    	}
    }
    
    func makeStatefulSetWithMaxUnavailable(maxUnavailable *int) *apps.StatefulSet {
    	rollingUpdate := apps.RollingUpdateStatefulSetStrategy{}
    	if maxUnavailable != nil {
    		maxUnavailableIntStr := intstr.FromInt32(int32(*maxUnavailable))
    		rollingUpdate = apps.RollingUpdateStatefulSetStrategy{
    			MaxUnavailable: &maxUnavailableIntStr,
    		}
    	}
    
    	return &apps.StatefulSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. pkg/controller/daemon/update.go

    	if desiredNumberScheduled > 0 && maxUnavailable == 0 && maxSurge == 0 {
    		logger.Info("DaemonSet is not configured for surge or unavailability, defaulting to accepting unavailability", "daemonset", klog.KObj(ds))
    		maxUnavailable = 1
    	}
    	logger.V(5).Info("DaemonSet with maxSurge and maxUnavailable", "daemonset", klog.KObj(ds), "maxSurge", maxSurge, "maxUnavailable", maxUnavailable)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_control.go

    			unavailablePods++
    		}
    	}
    
    	if unavailablePods >= maxUnavailable {
    		logger.V(2).Info("StatefulSet found unavailablePods, more than or equal to allowed maxUnavailable",
    			"statefulSet", klog.KObj(set),
    			"unavailablePods", unavailablePods,
    			"maxUnavailable", maxUnavailable)
    		return &status, nil
    	}
    
    	// Now we need to delete MaxUnavailable- unavailablePods
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	}
    
    	// Changing MinAvailable to MaxAvailable? OK
    	maxUnavailable := intstr.FromString("28%")
    	newPdb.Spec.MaxUnavailable = &maxUnavailable
    	newPdb.Spec.MinAvailable = nil
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    		t.Errorf("Expected no error updating replacing MinAvailable with MaxUnavailable on poddisruptionbudgets.")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/policy/v1/types.go

    	// An eviction is allowed if at most "maxUnavailable" pods selected by
    	// "selector" are unavailable after the eviction, i.e. even in absence of
    	// the evicted pod. For example, one can prevent all voluntary evictions
    	// by specifying 0. This is a mutually exclusive setting with "minAvailable".
    	// +optional
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,3,opt,name=maxUnavailable"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_utils.go

    }
    
    // getStatefulSetMaxUnavailable calculates the real maxUnavailable number according to the replica count
    // and maxUnavailable from rollingUpdateStrategy. The number defaults to 1 if the maxUnavailable field is
    // not set, and it will be round down to at least 1 if the maxUnavailable value is a percentage.
    // Note that API validation has already guaranteed the maxUnavailable field to be >1 if it is an integer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apps/v1/types_swagger_doc_generated.go

    	return map_ReplicaSetStatus
    }
    
    var map_RollingUpdateDaemonSet = map[string]string{
    	"":               "Spec to control the desired behavior of daemon set rolling update.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:14:59 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top