Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for revisionHistoryLimit (0.26 sec)

  1. pkg/apis/apps/v1beta2/defaults.go

    			// Set default MaxSurge as 0 by default.
    			updateStrategy.RollingUpdate.MaxSurge = ptr.To(intstr.FromInt32(0))
    		}
    	}
    	if obj.Spec.RevisionHistoryLimit == nil {
    		obj.Spec.RevisionHistoryLimit = new(int32)
    		*obj.Spec.RevisionHistoryLimit = 10
    	}
    }
    
    func SetDefaults_StatefulSet(obj *appsv1beta2.StatefulSet) {
    	if len(obj.Spec.PodManagementPolicy) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1/defaults_test.go

    						},
    					},
    					RevisionHistoryLimit: ptr.To[int32](10),
    				},
    			},
    		},
    		{ // Labels change/defaulting test.
    			original: &appsv1.DaemonSet{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						"bar": "foo",
    					},
    				},
    				Spec: appsv1.DaemonSetSpec{
    					Template:             defaultTemplate,
    					RevisionHistoryLimit: ptr.To[int32](1),
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. pkg/apis/apps/v1beta1/defaults_test.go

    					},
    					RevisionHistoryLimit: ptr.To[int32](0),
    				},
    			},
    			expected: &appsv1beta1.Deployment{
    				Spec: appsv1beta1.DeploymentSpec{
    					Replicas: ptr.To[int32](5),
    					Strategy: appsv1beta1.DeploymentStrategy{
    						Type: appsv1beta1.RecreateDeploymentStrategyType,
    					},
    					RevisionHistoryLimit:    ptr.To[int32](0),
    					ProgressDeadlineSeconds: ptr.To[int32](600),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1beta2/defaults_test.go

    						},
    					},
    					RevisionHistoryLimit: ptr.To[int32](10),
    				},
    			},
    		},
    		{ // Labels change/defaulting test.
    			original: &appsv1beta2.DaemonSet{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						"bar": "foo",
    					},
    				},
    				Spec: appsv1beta2.DaemonSetSpec{
    					Template:             defaultTemplate,
    					RevisionHistoryLimit: ptr.To[int32](1),
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. pkg/apis/apps/v1/defaults.go

    			// Set default MaxSurge as 25% by default.
    			maxSurge := intstr.FromString("25%")
    			strategy.RollingUpdate.MaxSurge = &maxSurge
    		}
    	}
    	if obj.Spec.RevisionHistoryLimit == nil {
    		obj.Spec.RevisionHistoryLimit = new(int32)
    		*obj.Spec.RevisionHistoryLimit = 10
    	}
    	if obj.Spec.ProgressDeadlineSeconds == nil {
    		obj.Spec.ProgressDeadlineSeconds = new(int32)
    		*obj.Spec.ProgressDeadlineSeconds = 600
    	}
    }
    
    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. pkg/controller/deployment/sync_test.go

    				newRSWithStatus("foo-2", 1, 1, selector),
    			},
    			revisionHistoryLimit: 0,
    			expectedDeletions:    0,
    		},
    		{
    			oldRSs: []*apps.ReplicaSet{
    				alreadyDeleted,
    			},
    			revisionHistoryLimit: 0,
    			expectedDeletions:    0,
    		},
    		{
    			// with unlimited revisionHistoryLimit
    			oldRSs: []*apps.ReplicaSet{
    				newRSWithStatus("foo-1", 0, 0, selector),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1beta1/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
    	}
    	if obj.Spec.UpdateStrategy.Type == appsv1beta1.RollingUpdateStatefulSetStrategyType &&
    		obj.Spec.UpdateStrategy.RollingUpdate != nil {
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. pkg/apis/extensions/v1beta1/defaults.go

    		*obj.Spec.ProgressDeadlineSeconds = math.MaxInt32
    	}
    	// Set extensionsv1beta1.DeploymentSpec.RevisionHistoryLimit to MaxInt32,
    	// which has the same meaning as unset.
    	if obj.Spec.RevisionHistoryLimit == nil {
    		obj.Spec.RevisionHistoryLimit = new(int32)
    		*obj.Spec.RevisionHistoryLimit = math.MaxInt32
    	}
    }
    
    func SetDefaults_ReplicaSet(obj *extensionsv1beta1.ReplicaSet) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/daemonsetspec.go

    	MinReadySeconds      *int32                                     `json:"minReadySeconds,omitempty"`
    	RevisionHistoryLimit *int32                                     `json:"revisionHistoryLimit,omitempty"`
    }
    
    // DaemonSetSpecApplyConfiguration constructs an declarative configuration of the DaemonSetSpec type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/daemonsetspec.go

    	MinReadySeconds      *int32                                     `json:"minReadySeconds,omitempty"`
    	RevisionHistoryLimit *int32                                     `json:"revisionHistoryLimit,omitempty"`
    }
    
    // DaemonSetSpecApplyConfiguration constructs an declarative configuration of the DaemonSetSpec type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3.8K bytes
    - Viewed (0)
Back to top