Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for IntPtr (0.15 sec)

  1. pkg/controller/deployment/sync_test.go

    		},
    		{
    			name:          "saturated but broken new replica set does not affect old pods",
    			deployment:    newDeployment("foo", 2, nil, ptr.To(intstr.FromInt32(1)), ptr.To(intstr.FromInt32(1)), nil),
    			oldDeployment: newDeployment("foo", 2, nil, ptr.To(intstr.FromInt32(1)), ptr.To(intstr.FromInt32(1)), nil),
    
    			newRS: func() *apps.ReplicaSet {
    				rs := rs("foo-v2", 2, nil, newTimestamp)
    				rs.Status.AvailableReplicas = 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1/conversion_test.go

    		}
    	}
    }
    
    func TestV1RollingUpdateDeploymentConversion(t *testing.T) {
    	nilIntStr := intstr.IntOrString{}
    	maxUnavailable := intstr.FromInt32(2)
    	maxSurge := intstr.FromInt32(2)
    	testcases := map[string]struct {
    		rollingUpdateDeployment1 *apps.RollingUpdateDeployment
    		rollingUpdateDeployment2 *appsv1.RollingUpdateDeployment
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    								Name:     "dns",
    								Port:     53,
    								Protocol: v1.ProtocolUDP,
    								TargetPort: intstr.IntOrString{
    									Type:   0,
    									IntVal: 53,
    								},
    							},
    							{
    								Name:     "dns-tcp",
    								Port:     53,
    								Protocol: v1.ProtocolTCP,
    								TargetPort: intstr.IntOrString{
    									Type:   0,
    									IntVal: 53,
    								},
    							},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1beta2/conversion_test.go

    		}
    	}
    }
    
    func TestV1beta2RollingUpdateDeploymentConversion(t *testing.T) {
    	nilIntStr := intstr.IntOrString{}
    	maxUnavailable := intstr.FromInt32(2)
    	maxSurge := intstr.FromInt32(2)
    	testcases := map[string]struct {
    		rollingUpdateDeployment1 *apps.RollingUpdateDeployment
    		rollingUpdateDeployment2 *v1beta2.RollingUpdateDeployment
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/apps/v1/zz_generated.deepcopy.go

    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1
    
    import (
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtime "k8s.io/apimachinery/pkg/runtime"
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 23.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/apps/v1beta2/zz_generated.deepcopy.go

    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1beta2
    
    import (
    	corev1 "k8s.io/api/core/v1"
    	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtime "k8s.io/apimachinery/pkg/runtime"
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 25.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1beta1/zz_generated.deepcopy.go

    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1beta1
    
    import (
    	corev1 "k8s.io/api/core/v1"
    	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtime "k8s.io/apimachinery/pkg/runtime"
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 18.5K bytes
    - Viewed (0)
  8. pkg/apis/apps/validation/validation.go

    // percentage.
    func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	switch intOrPercent.Type {
    	case intstr.String:
    		for _, msg := range validation.IsValidPercent(intOrPercent.StrVal) {
    			allErrs = append(allErrs, field.Invalid(fldPath, intOrPercent, msg))
    		}
    	case intstr.Int:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/policy/v1/types.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DisruptionBudgetCause is the status cause returned for eviction failures caused by PodDisruptionBudget violations.
    const DisruptionBudgetCause metav1.CauseType = "DisruptionBudget"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/defaults.go

    	}
    	for i := range obj.Spec.Ports {
    		sp := &obj.Spec.Ports[i]
    		if sp.Protocol == "" {
    			sp.Protocol = v1.ProtocolTCP
    		}
    		if sp.TargetPort == intstr.FromInt32(0) || sp.TargetPort == intstr.FromString("") {
    			sp.TargetPort = intstr.FromInt32(sp.Port)
    		}
    	}
    	// Defaults ExternalTrafficPolicy field for externally-accessible service
    	// to Global for consistency.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top