Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for minAvailable (0.28 sec)

  1. pkg/apis/policy/validation/validation_test.go

    	"k8s.io/kubernetes/pkg/apis/policy"
    )
    
    func TestValidatePodDisruptionBudgetSpec(t *testing.T) {
    	minAvailable := intstr.FromString("0%")
    	maxUnavailable := intstr.FromString("10%")
    
    	spec := policy.PodDisruptionBudgetSpec{
    		MinAvailable:   &minAvailable,
    		MaxUnavailable: &maxUnavailable,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. 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)
  3. pkg/apis/policy/validation/validation.go

    	allErrs := field.ErrorList{}
    
    	if spec.MinAvailable != nil && spec.MaxUnavailable != nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, spec, "minAvailable and maxUnavailable cannot be both set"))
    	}
    
    	if spec.MinAvailable != nil {
    		allErrs = append(allErrs, appsvalidation.ValidatePositiveIntOrPercent(*spec.MinAvailable, fldPath.Child("minAvailable"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. 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)
  5. manifests/charts/gateway/values.yaml

      #
      # To enable the PodDisruptionBudget, configure it by specifying the
      # `minAvailable` or `maxUnavailable`. For example, to set the
      # minimum number of available replicas to 1, you can update this value as follows:
      #
      # podDisruptionBudget:
      #   minAvailable: 1
      #
      # Or, to allow a maximum of 1 unavailable replica, you can set:
      #
      # podDisruptionBudget:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 16:51:35 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/policy.v1beta1.PodDisruptionBudget.json

            "time": "2004-01-01T01:01:01Z",
            "fieldsType": "fieldsTypeValue",
            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "minAvailable": "minAvailableValue",
        "selector": {
          "matchLabels": {
            "matchLabelsKey": "matchLabelsValue"
          },
          "matchExpressions": [
            {
              "key": "keyValue",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. manifests/charts/gateways/istio-egress/templates/poddisruptionbudget.yaml

        istio.io/rev: {{ .Values.revision | default "default" | quote }}
        install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }}
        operator.istio.io/component: "EgressGateways"
    spec:
      minAvailable: 1
      selector:
        matchLabels:
    {{ $gateway.labels | toYaml | trim | indent 6 }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 664 bytes
    - Viewed (0)
  10. manifests/charts/istio-control/istio-discovery/templates/poddisruptionbudget.yaml

        install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }}
        operator.istio.io/component: "Pilot"
        release: {{ .Release.Name }}
        istio: pilot
    spec:
      minAvailable: 1
      selector:
        matchLabels:
          app: istiod
          {{- if ne .Values.revision "" }}
          istio.io/rev: {{ .Values.revision | quote }}
          {{- else }}
          istio: pilot
          {{- end }}
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 749 bytes
    - Viewed (0)
Back to top