Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for minAvailable (0.14 sec)

  1. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	// Changing MinAvailable?  OK
    	newMinAvailable := intstr.FromString("28%")
    	newPdb.Spec.MinAvailable = &newMinAvailable
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    		t.Errorf("Expected no error updating MinAvailable on poddisruptionbudgets.")
    	}
    
    	// Changing MinAvailable to MaxAvailable? OK
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. pkg/apis/policy/v1/zz_generated.conversion.go

    }
    
    func autoConvert_v1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *v1.PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error {
    	out.MinAvailable = (*intstr.IntOrString)(unsafe.Pointer(in.MinAvailable))
    	out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
    	out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  3. pkg/controller/deployment/rolling.go

    	// allow the new replica set to be scaled up by 5.
    	minAvailable := *(deployment.Spec.Replicas) - maxUnavailable
    	newRSUnavailablePodCount := *(newRS.Spec.Replicas) - newRS.Status.AvailableReplicas
    	maxScaledDown := allPodsCount - minAvailable - newRSUnavailablePodCount
    	if maxScaledDown <= 0 {
    		return false, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. operator/pkg/object/objects_test.go

                        clusterIP: 10.102.230.31`),
    		},
    		{
    			desc: "only minAvailable is set",
    			o1: getK8sObject(`
                      apiVersion: policy/v1
                      kind: PodDisruptionBudget
                      metadata:
                        name: zk-pdb
                      spec:
                        minAvailable: 2`),
    			o2: getK8sObject(`
                      apiVersion: policy/v1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/policy/v1/types.go

    	// An eviction is allowed if at least "minAvailable" pods selected by
    	// "selector" will still be available after the eviction, i.e. even in the
    	// absence of the evicted pod.  So for example you can prevent all voluntary
    	// evictions by specifying "100%".
    	// +optional
    	MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. pkg/apis/policy/v1beta1/zz_generated.conversion.go

    }
    
    func autoConvert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *v1beta1.PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error {
    	out.MinAvailable = (*intstr.IntOrString)(unsafe.Pointer(in.MinAvailable))
    	out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
    	out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/policy/v1beta1/types.go

    	// An eviction is allowed if at least "minAvailable" pods selected by
    	// "selector" will still be available after the eviction, i.e. even in the
    	// absence of the evicted pod.  So for example you can prevent all voluntary
    	// evictions by specifying "100%".
    	// +optional
    	MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. pkg/controller/disruption/disruption.go

    		}
    	} else if pdb.Spec.MinAvailable != nil {
    		if pdb.Spec.MinAvailable.Type == intstr.Int {
    			desiredHealthy = pdb.Spec.MinAvailable.IntVal
    			expectedCount = int32(len(pods))
    		} else if pdb.Spec.MinAvailable.Type == intstr.String {
    			expectedCount, unmanagedPods, err = dc.getExpectedScale(ctx, pdb, pods)
    			if err != nil {
    				return
    			}
    
    			var minAvailable int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  9. operator/pkg/object/objects.go

    		}
    		return false
    	}
    	if spec["maxUnavailable"] != nil && spec["minAvailable"] != nil {
    		// When both maxUnavailable and minAvailable present and
    		// neither has value 0, this is considered a conflict,
    		// then maxUnavailable will take precedence.
    		if !isDefault(spec["maxUnavailable"]) && !isDefault(spec["minAvailable"]) {
    			delete(spec, "minAvailable")
    			// Make sure that the json and yaml representation of the object
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/policy/v1/generated.pb.go

    			if postIndex < 0 {
    				return ErrInvalidLengthGenerated
    			}
    			if postIndex > l {
    				return io.ErrUnexpectedEOF
    			}
    			if m.MinAvailable == nil {
    				m.MinAvailable = &intstr.IntOrString{}
    			}
    			if err := m.MinAvailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
    				return err
    			}
    			iNdEx = postIndex
    		case 2:
    			if wireType != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 45.1K bytes
    - Viewed (0)
Back to top