Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 393 for replicaSet (0.16 sec)

  1. pkg/registry/apps/replicaset/storage/storage.go

    		NewListFunc:               func() runtime.Object { return &apps.ReplicaSetList{} },
    		PredicateFunc:             replicaset.MatchReplicaSet,
    		DefaultQualifiedResource:  apps.Resource("replicasets"),
    		SingularQualifiedResource: apps.Resource("replicaset"),
    
    		CreateStrategy:      replicaset.Strategy,
    		UpdateStrategy:      replicaset.Strategy,
    		DeleteStrategy:      replicaset.Strategy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  2. pkg/controller/deployment/sync_test.go

    		return d
    	}
    
    	tests := []struct {
    		name          string
    		deployment    *apps.Deployment
    		oldDeployment *apps.Deployment
    
    		newRS  *apps.ReplicaSet
    		oldRSs []*apps.ReplicaSet
    
    		expectedNew  *apps.ReplicaSet
    		expectedOld  []*apps.ReplicaSet
    		wasntUpdated map[string]bool
    
    		desiredReplicasAnnotations map[string]int32
    	}{
    		{
    			name:          "normal scaling event: 10 -> 12",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. pkg/controller/deployment/util/deployment_util_test.go

    			deployment:      deployment,
    			rsList:          []*apps.ReplicaSet{&oldRS},
    			expected:        []*apps.ReplicaSet{&oldRS},
    			expectedRequire: nil,
    		},
    		{
    			Name:            "Get old ReplicaSets with two new ReplicaSets, only the oldest new ReplicaSet is seen as new ReplicaSet",
    			deployment:      deployment,
    			rsList:          []*apps.ReplicaSet{&oldRS, &newRS, &newRSDup},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_test.go

    			rss:         []*apps.ReplicaSet{someRS, unrelatedRS},
    			rs:          someRS,
    			expectedRSs: []*apps.ReplicaSet{someRS},
    		},
    		{
    			name:        "expect to get back the given ReplicaSet as well as any related ReplicaSet but not an unrelated ReplicaSet",
    			rss:         []*apps.ReplicaSet{someRS, relatedRS, unrelatedRS},
    			rs:          someRS,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  5. pkg/controller/replication/conversion.go

    func convertRCtoRS(rc *v1.ReplicationController, out *apps.ReplicaSet) (*apps.ReplicaSet, error) {
    	var rsInternal appsinternal.ReplicaSet
    	if err := apiv1.Convert_v1_ReplicationController_To_apps_ReplicaSet(rc, &rsInternal, nil); err != nil {
    		return nil, fmt.Errorf("can't convert ReplicationController %v/%v to ReplicaSet: %v", rc.Namespace, rc.Name, err)
    	}
    	if out == nil {
    		out = new(apps.ReplicaSet)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 18:43:33 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  6. pkg/registry/apps/replicaset/storage/storage_test.go

    	obj, err := storage.Create(ctx, &rs, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Errorf("Failed to create ReplicaSet, %v", err)
    	}
    	newRS := obj.(*apps.ReplicaSet)
    	return *newRS, nil
    }
    
    func validNewReplicaSet() *apps.ReplicaSet {
    	return &apps.ReplicaSet{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: apps.ReplicaSetSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  7. pkg/controller/deployment/sync.go

    		alreadyExists = true
    
    		// Fetch a copy of the ReplicaSet.
    		rs, rsErr := dc.rsLister.ReplicaSets(newRS.Namespace).Get(newRS.Name)
    		if rsErr != nil {
    			return nil, rsErr
    		}
    
    		// If the Deployment owns the ReplicaSet and the ReplicaSet's PodTemplateSpec is semantically
    		// deep equal to the PodTemplateSpec of the Deployment, it's the Deployment's new ReplicaSet.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  8. pkg/registry/apps/replicaset/strategy.go

    	newRS := obj.(*apps.ReplicaSet)
    	oldRS := old.(*apps.ReplicaSet)
    	// update is not allowed to set spec
    	newRS.Spec = oldRS.Spec
    }
    
    func (rsStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return appsvalidation.ValidateReplicaSetStatusUpdate(obj.(*apps.ReplicaSet), old.(*apps.ReplicaSet))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. pkg/controller/deployment/util/deployment_util.go

    func FindOldReplicaSets(deployment *apps.Deployment, rsList []*apps.ReplicaSet) ([]*apps.ReplicaSet, []*apps.ReplicaSet) {
    	var requiredRSs []*apps.ReplicaSet
    	var allRSs []*apps.ReplicaSet
    	newRS := FindNewReplicaSet(deployment, rsList)
    	for _, rs := range rsList {
    		// Filter out new replica set
    		if newRS != nil && rs.UID == newRS.UID {
    			continue
    		}
    		allRSs = append(allRSs, rs)
    		if *(rs.Spec.Replicas) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  10. pkg/controller/deployment/deployment_controller.go

    		if len(ds) == 0 {
    			return
    		}
    		logger.V(4).Info("Orphan ReplicaSet updated", "replicaSet", klog.KObj(curRS))
    		for _, d := range ds {
    			dc.enqueueDeployment(d)
    		}
    	}
    }
    
    // deleteReplicaSet enqueues the deployment that manages a ReplicaSet when
    // the ReplicaSet is deleted. obj could be an *apps.ReplicaSet, or
    // a DeletionFinalStateUnknown marker item.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top