- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for minAvailable (0.14 sec)
-
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) -
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) -
pkg/registry/policy/poddisruptionbudget/storage/storage_test.go
if err != nil { t.Fatalf("failed to get pdb: %v", err) } obtainedPdb := obj.(*policy.PodDisruptionBudget) minAvailable := intstr.FromInt32(8) update := policy.PodDisruptionBudget{ ObjectMeta: obtainedPdb.ObjectMeta, Spec: policy.PodDisruptionBudgetSpec{ MinAvailable: &minAvailable, }, Status: policy.PodDisruptionBudgetStatus{ ExpectedPods: 8, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:45 UTC 2023 - 5.3K bytes - Viewed (0) -
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) -
staging/src/k8s.io/api/policy/v1/zz_generated.deepcopy.go
func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) { *out = *in if in.MinAvailable != nil { in, out := &in.MinAvailable, &out.MinAvailable *out = new(intstr.IntOrString) **out = **in } if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(metav1.LabelSelector)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 22:32:27 UTC 2022 - 5.4K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)