Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 337 for Replicas (0.32 sec)

  1. pkg/apis/apps/v1/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: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1beta2/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: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. pkg/apis/apps/v1beta1/defaults_test.go

    	maxUnavailable, err := intstr.GetScaledValueFromIntOrPercent(d.Spec.Strategy.RollingUpdate.MaxUnavailable, int(*(d.Spec.Replicas)), false)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if *(d.Spec.Replicas)-int32(maxUnavailable) <= 0 {
    		t.Fatalf("the default value of maxUnavailable can lead to no active replicas during rolling update")
    	}
    }
    
    func TestSetDefaultStatefulSet(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/subresources_test.go

    			}
    
    			// Scale.Spec.Replicas = 7 but Scale.Status.Replicas should remain 0
    			gottenScale, err := scaleClient.Scales("not-the-default").Get(context.TODO(), groupResource, "foo", metav1.GetOptions{})
    			if err != nil {
    				t.Fatal(err)
    			}
    			if gottenScale.Spec.Replicas != 7 {
    				t.Fatalf("Scale.Spec.Replicas: expected: %v, got: %v", 7, gottenScale.Spec.Replicas)
    			}
    			if gottenScale.Status.Replicas != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 12 17:35:34 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/apps/v1beta2/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
    - 34.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/apps/v1/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: Mon Apr 29 07:14:59 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

      }
    
      if (legacy_graph_export) {
        // Replicas with no uses should be pinned to a graph fetch so they still
        // execute.
        llvm::SmallVector<Value, 8> unused_replica_controls;
        for (auto& replica : replicas)
          if (replica.use_empty())
            unused_replica_controls.push_back(replica.getControl());
    
        if (!unused_replica_controls.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. pkg/apis/apps/types.go

    	// These are replicas in the sense that they are instantiations of the
    	// same Template, but individual replicas also have a consistent identity.
    	// If unspecified, defaults to 1.
    	// TODO: Consider a rename of this field.
    	// +optional
    	Replicas int32
    
    	// Selector is a label query over pods that should match the replica count.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:09:29 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/apps/v1/generated.proto

      // the replica count to be deleted.
      optional string whenScaled = 2;
    }
    
    // A StatefulSetSpec is the specification of a StatefulSet.
    message StatefulSetSpec {
      // replicas is the desired number of replicas of the given Template.
      // These are replicas in the sense that they are instantiations of the
      // same Template, but individual replicas also have a consistent identity.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apps/v1/generated.proto

      // the replica count to be deleted.
      optional string whenScaled = 2;
    }
    
    // A StatefulSetSpec is the specification of a StatefulSet.
    message StatefulSetSpec {
      // replicas is the desired number of replicas of the given Template.
      // These are replicas in the sense that they are instantiations of the
      // same Template, but individual replicas also have a consistent identity.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:14:59 UTC 2024
    - 34.8K bytes
    - Viewed (0)
Back to top