Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 529 for Replicas (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v1/scalespec.go

    // with apply.
    type ScaleSpecApplyConfiguration struct {
    	Replicas *int32 `json:"replicas,omitempty"`
    }
    
    // ScaleSpecApplyConfiguration constructs an declarative configuration of the ScaleSpec type for use with
    // apply.
    func ScaleSpec() *ScaleSpecApplyConfiguration {
    	return &ScaleSpecApplyConfiguration{}
    }
    
    // WithReplicas sets the Replicas field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 05 19:27:43 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/types.go

    type ReplicaSetSpec struct {
    	// 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
    	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 29 00:35:16 UTC 2019
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/conversion.go

    	out.Replicas = new(int32)
    	*out.Replicas = int32(in.Replicas)
    	return nil
    }
    
    func Convert_v1_ReplicaSetSpec_To_example_ReplicaSetSpec(in *ReplicaSetSpec, out *example.ReplicaSetSpec, s conversion.Scope) error {
    	if in.Replicas != nil {
    		out.Replicas = *in.Replicas
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 24 18:21:00 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  7. 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)
  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. 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)
  10. 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)
Back to top