- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,010 for Replicas (0.34 sec)
-
pkg/controller/deployment/sync.go
if *(deployment.Spec.Replicas) > 0 { allowedSize = *(deployment.Spec.Replicas) + deploymentutil.MaxSurge(*deployment) } // Number of additional replicas that can be either added or removed from the total // replicas count. These replicas should be distributed proportionally to the active // replica sets. deploymentReplicasToAdd := allowedSize - allRSsReplicas
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 24.5K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_status_updater_test.go
t.Errorf("Error returned on successful status update: %s", err) } if set.Status.Replicas != 2 { t.Errorf("UpdateStatefulSetStatus mutated the sets replicas %d", set.Status.Replicas) } } func TestStatefulSetStatusUpdaterUpdatesObservedGeneration(t *testing.T) { set := newStatefulSet(3) status := apps.StatefulSetStatus{ObservedGeneration: 3, Replicas: 2} fakeClient := &fake.Clientset{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 13 15:37:10 UTC 2022 - 5.9K bytes - Viewed (0) -
pkg/controller/deployment/sync_test.go
wasntUpdated: map[string]bool{"foo-v2": true, "foo-v1": true}, }, // Scenario: deployment.spec.replicas == 3 ( foo-v1.spec.replicas == foo-v2.spec.replicas == foo-v3.spec.replicas == 1 ) // Deployment is scaled to 5. foo-v3.spec.replicas and foo-v2.spec.replicas should increment by 1 but foo-v2 fails to // update. { name: "failed rs update",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control.go
} } if identityMatches(set, replicas[i]) && storageMatches(set, replicas[i]) && retentionMatch { return false, nil } // Make a deep copy so we don't mutate the shared cache replica := replicas[i].DeepCopy() if err := ssc.podControl.UpdateStatefulPod(ctx, updateSet, replica); err != nil { return true, err } return false, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:03:46 UTC 2024 - 30.9K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1beta1/types.go
// to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:24 UTC 2023 - 35.1K bytes - Viewed (0) -
pkg/controller/deployment/recreate_test.go
oldRSs = append(oldRSs, rs) rsCopy := rs.DeepCopy() zero := int32(0) rsCopy.Spec.Replicas = &zero expected = append(expected, rsCopy) if *(oldRSs[n].Spec.Replicas) == *(expected[n].(*apps.ReplicaSet).Spec.Replicas) { t.Errorf("broken test - original and expected RS have the same size") } } kc := fake.NewSimpleClientset(expected...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_utils.go
var updatedRS *apps.ReplicaSet for i, rs := 0, rs; ; i++ { logger.V(4).Info(fmt.Sprintf("Updating status for %v: %s/%s, ", rs.Kind, rs.Namespace, rs.Name) + fmt.Sprintf("replicas %d->%d (need %d), ", rs.Status.Replicas, newStatus.Replicas, *(rs.Spec.Replicas)) + fmt.Sprintf("fullyLabeledReplicas %d->%d, ", rs.Status.FullyLabeledReplicas, newStatus.FullyLabeledReplicas) +
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 12:19:51 UTC 2023 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager_test.go
spec: replicas: 3 `), applied: []byte(` apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment spec: replicas: 100 # update replicas `), expectConflictSet: fieldpath.NewSet( fieldpath.MakePathOrDie("spec", "replicas"), ), }, { fieldManager: "kubectl", lastApplied: []byte(` apiVerison: foo kind: bar spec: expect conflict due to invalid object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 20K bytes - Viewed (0) -
pkg/registry/apps/deployment/storage/storage_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:45 UTC 2023 - 19.7K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1beta1/types_swagger_doc_generated.go
"": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 05:34:30 UTC 2023 - 23.1K bytes - Viewed (0)