Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 600 for Replicas (0.3 sec)

  1. common-protos/k8s.io/api/apps/v1beta1/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
    - 24K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/apps/v1beta2/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
    - 36.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/apps/v1beta2/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: Thu Mar 28 15:34:11 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/api/apps/v1/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: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  7. 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)
  8. pkg/apis/apps/v1beta1/defaults.go

    		}
    		if len(obj.Labels) == 0 {
    			obj.Labels = labels
    		}
    	}
    	// Set appsv1beta1.DeploymentSpec.Replicas to 1 if it is not set.
    	if obj.Spec.Replicas == nil {
    		obj.Spec.Replicas = new(int32)
    		*obj.Spec.Replicas = 1
    	}
    	strategy := &obj.Spec.Strategy
    	// Set default appsv1beta1.DeploymentStrategyType as RollingUpdate.
    	if strategy.Type == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. pkg/apis/apps/v1/defaults.go

    		}
    	}
    
    	if obj.Spec.Replicas == nil {
    		obj.Spec.Replicas = new(int32)
    		*obj.Spec.Replicas = 1
    	}
    	if obj.Spec.RevisionHistoryLimit == nil {
    		obj.Spec.RevisionHistoryLimit = new(int32)
    		*obj.Spec.RevisionHistoryLimit = 10
    	}
    }
    func SetDefaults_ReplicaSet(obj *appsv1.ReplicaSet) {
    	if obj.Spec.Replicas == nil {
    		obj.Spec.Replicas = new(int32)
    		*obj.Spec.Replicas = 1
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/generated.proto

    message ReplicaSetSpec {
      // Replicas is the number of desired replicas.
      // This is a pointer to distinguish between explicit zero and unspecified.
      // Defaults to 1.
      // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
      // +optional
      optional int32 replicas = 1;
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top