Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 425 for replicaSet (0.33 sec)

  1. pkg/controller/replicaset/replica_set.go

    }
    
    // getReplicaSetsWithSameController returns a list of ReplicaSets with the same
    // owner as the given ReplicaSet.
    func (rsc *ReplicaSetController) getReplicaSetsWithSameController(logger klog.Logger, rs *apps.ReplicaSet) []*apps.ReplicaSet {
    	controllerRef := metav1.GetControllerOf(rs)
    	if controllerRef == nil {
    		utilruntime.HandleError(fmt.Errorf("ReplicaSet has no controller: %v", rs))
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. pkg/controller/deployment/recreate_test.go

    	tests := []struct {
    		name string
    
    		newRS  *apps.ReplicaSet
    		oldRSs []*apps.ReplicaSet
    		podMap map[types.UID][]*v1.Pod
    
    		hasOldPodsRunning bool
    	}{
    		{
    			name:              "no old RSs",
    			hasOldPodsRunning: false,
    		},
    		{
    			name:              "old RSs with running pods",
    			oldRSs:            []*apps.ReplicaSet{rsWithUID("some-uid"), rsWithUID("other-uid")},
    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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/registry/apps/replicaset/strategy_test.go

    	fakeImage      = "fakeimage"
    	replicasetName = "test-replicaset"
    	namespace      = "test-namespace"
    )
    
    func TestReplicaSetStrategy(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	if !Strategy.NamespaceScoped() {
    		t.Errorf("ReplicaSet must be namespace scoped")
    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ReplicaSet should not allow create on update")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  10. 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)
Back to top