Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,010 for Replicas (0.24 sec)

  1. pkg/registry/core/replicationcontroller/strategy_test.go

    			Template: &validPodTemplate.Template,
    		},
    		Status: api.ReplicationControllerStatus{
    			Replicas:           1,
    			ObservedGeneration: int64(10),
    		},
    	}
    
    	Strategy.PrepareForCreate(ctx, rc)
    	if rc.Status.Replicas != 0 {
    		t.Error("ReplicationController should not allow setting status.replicas on create")
    	}
    	if rc.Status.ObservedGeneration != int64(0) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 13 16:56:29 UTC 2019
    - 6.9K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/conflict_test.go

    								Type:    metav1.CauseTypeFieldManagerConflict,
    								Message: `conflict with "foo" using v1 at 2001-02-03T04:05:06Z`,
    								Field:   ".spec.replicas",
    							},
    						},
    					},
    					Message: `Apply failed with 1 conflict: conflict with "foo" using v1 at 2001-02-03T04:05:06Z: .spec.replicas`,
    				},
    			},
    		},
    		{
    			conflict: merge.Conflicts{
    				merge.Conflict{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract_test.go

    	Status            fakeDeploymentStatus `json:"status"`
    }
    
    type fakeDeploymentSpec struct {
    	Replicas *int32 `json:"replicas"`
    	Paused   bool   `json:"paused,omitempty"`
    }
    
    type fakeDeploymentStatus struct {
    	Replicas *int32 `json:"replicas"`
    }
    
    func (o *fakeDeployment) GetObjectMeta() metav1.ObjectMeta {
    	return o.ObjectMeta
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 22 22:32:45 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. manifests/addons/values-loki.yaml

      lokiCanary:
        enabled: false
    resultsCache:
      enabled: false
    chunksCache:
      enabled: false
    singleBinary:
      replicas: 1
    deploymentMode: SingleBinary
    gateway:
      enabled: false
    read:
      replicas: 0
    write:
      replicas: 0
    backend:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 21:40:53 UTC 2024
    - 786 bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/apps/v1beta2/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
    - 52.2K bytes
    - Viewed (0)
  9. pkg/apis/apps/v1beta2/defaults.go

    // - ProgressDeadlineSeconds set to 600s (not set in extensions)
    func SetDefaults_Deployment(obj *appsv1beta2.Deployment) {
    	// Set appsv1beta2.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 appsv1beta2.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
    - 5.5K bytes
    - Viewed (0)
  10. 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)
Back to top