- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 337 for Replicas (0.34 sec)
-
pkg/controller/podautoscaler/replica_calculator.go
// return the current replicas if the change of metrics length would cause a change in scale direction return currentReplicas, usage, nil } // return the result, where the number of replicas considered is // however many replicas factored into our calculation return newReplicas, usage, nil } // GetObjectMetricReplicas calculates the desired replica count based on a target metric usage (as a milli-value)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/registry/apps/statefulset/storage/storage.go
UID: ss.UID, ResourceVersion: ss.ResourceVersion, CreationTimestamp: ss.CreationTimestamp, }, Spec: autoscaling.ScaleSpec{ Replicas: ss.Spec.Replicas, }, Status: autoscaling.ScaleStatus{ Replicas: ss.Status.Replicas, Selector: selector.String(), }, }, nil } // scaleUpdatedObjectInfo transforms existing statefulset -> existing scale -> new scale -> new statefulset
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 12.7K bytes - Viewed (0) -
pkg/registry/apps/statefulset/strategy_test.go
}, Status: apps.StatefulSetStatus{Replicas: 3}, } Strategy.PrepareForCreate(ctx, ps) if ps.Status.Replicas != 0 { t.Error("StatefulSet should not allow setting status.replicas on create") } errs := Strategy.Validate(ctx, ps) if len(errs) != 0 { t.Errorf("unexpected error validating %v", errs) } newMinReadySeconds := int32(50) // Just Spec.Replicas is allowed to change validPs := &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) -
pkg/apis/extensions/v1beta1/defaults_test.go
if !ok { t.Errorf("unexpected object: %v", rs2) t.FailNow() } if rs2.Spec.Replicas == nil { t.Errorf("unexpected nil Replicas") } else if test.expectReplicas != *rs2.Spec.Replicas { t.Errorf("expected: %d replicas, got: %d", test.expectReplicas, *rs2.Spec.Replicas) } } } func TestDefaultRequestIsNotSetForReplicaSet(t *testing.T) { s := v1.PodSpec{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 21.2K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_test.go
} if obj, _, err := om.setsIndexer.Get(set); err != nil { t.Error(err) } else { set = obj.(*apps.StatefulSet) } if set.Status.Replicas != 3 { t.Errorf("set.Status.Replicas = %v; want 3", set.Status.Replicas) } *set.Spec.Replicas = 0 if err := scaleDownStatefulSetController(logger, set, ssc, spc, om); err != nil { t.Errorf("Failed to turn down StatefulSet : %s", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.1K bytes - Viewed (0) -
pkg/registry/apps/replicaset/storage/storage.go
UID: rs.UID, ResourceVersion: rs.ResourceVersion, CreationTimestamp: rs.CreationTimestamp, }, Spec: autoscaling.ScaleSpec{ Replicas: rs.Spec.Replicas, }, Status: autoscaling.ScaleStatus{ Replicas: rs.Status.Replicas, Selector: selector.String(), }, }, nil } // scaleUpdatedObjectInfo transforms existing replicaset -> existing scale -> new scale -> new replicaset
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 12.9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/dns/dns.go
var err error if !printManifest { replicas, err = deployedDNSReplicas(client, coreDNSReplicas) if err != nil { return err } } else { var defaultReplicas int32 = coreDNSReplicas replicas = &defaultReplicas } return coreDNSAddon(cfg, client, replicas, patchesDir, out, printManifest) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 16.1K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
msg := "cannot be greater than status.replicas" if status.ReadyReplicas > status.Replicas { allErrs = append(allErrs, field.Invalid(fieldPath.Child("readyReplicas"), status.ReadyReplicas, msg)) } if status.CurrentReplicas > status.Replicas { allErrs = append(allErrs, field.Invalid(fieldPath.Child("currentReplicas"), status.CurrentReplicas, msg)) } if status.UpdatedReplicas > status.Replicas {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
tests/integration/ambient/main_test.go
Subsets: []echo.SubsetConfig{ { Replicas: 1, Version: "v1", }, { Replicas: 1, Version: "v2", }, }, }). WithConfig(echo.Config{ Service: Uncaptured, Namespace: apps.Namespace, Ports: ports.All(), ServiceAccount: true, Subsets: []echo.SubsetConfig{ { Replicas: 1, Version: "v1",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 00:07:28 UTC 2024 - 10.8K bytes - Viewed (0) -
pkg/apis/core/v1/conversion.go
return err } return nil } func Convert_apps_ReplicaSetSpec_To_v1_ReplicationControllerSpec(in *apps.ReplicaSetSpec, out *v1.ReplicationControllerSpec, s conversion.Scope) error { out.Replicas = new(int32) *out.Replicas = in.Replicas out.MinReadySeconds = in.MinReadySeconds var invalidErr error if in.Selector != nil { invalidErr = metav1.Convert_v1_LabelSelector_To_Map_string_To_string(in.Selector, &out.Selector, s) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:30:55 UTC 2024 - 19K bytes - Viewed (0)