Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 282 for intVar (0.13 sec)

  1. pkg/controller/deployment/rolling_test.go

    	"testing"
    
    	apps "k8s.io/api/apps/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    	"k8s.io/client-go/kubernetes/fake"
    	core "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/record"
    	"k8s.io/klog/v2/ktesting"
    )
    
    func TestDeploymentController_reconcileNewReplicaSet(t *testing.T) {
    	tests := []struct {
    		deploymentReplicas  int32
    		maxSurge            intstr.IntOrString
    		oldReplicas         int32
    		newReplicas         int32
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. pkg/apis/policy/validation/validation_test.go

    	}
    }
    
    func TestValidateMinAvailablePodDisruptionBudgetSpec(t *testing.T) {
    	successCases := []intstr.IntOrString{
    		intstr.FromString("0%"),
    		intstr.FromString("1%"),
    		intstr.FromString("100%"),
    		intstr.FromInt32(0),
    		intstr.FromInt32(1),
    		intstr.FromInt32(100),
    	}
    	for _, c := range successCases {
    		spec := policy.PodDisruptionBudgetSpec{
    			MinAvailable: &c,
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  3. src/fmt/scan_test.go

    	{"21\n", &intVal, 21},
    	{"2_1\n", &intVal, 21},
    	{"0\n", &intVal, 0},
    	{"000\n", &intVal, 0},
    	{"0x10\n", &intVal, 0x10},
    	{"0x_1_0\n", &intVal, 0x10},
    	{"-0x10\n", &intVal, -0x10},
    	{"0377\n", &intVal, 0377},
    	{"0_3_7_7\n", &intVal, 0377},
    	{"0o377\n", &intVal, 0377},
    	{"0o_3_7_7\n", &intVal, 0377},
    	{"-0377\n", &intVal, -0377},
    	{"-0o377\n", &intVal, -0377},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  4. test/interface/bigdata.go

    func (z *SmallPtr) M() int64 { return int64(z.a) }
    
    type IntPtr int32
    func (z *IntPtr) M() int64 { return int64(*z) }
    
    var bad bool
    
    func test(name string, i I) {
    	m := i.M()
    	if m != 12345 {
    		println(name, m)
    		bad = true
    	}
    }
    
    func ptrs() {
    	var bigptr BigPtr = BigPtr{ 10000, 2000, 300, 45 }
    	var smallptr SmallPtr = SmallPtr{ 12345 }
    	var intptr IntPtr = 12345
    
    //	test("bigptr", bigptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  5. pkg/controlplane/controller/kubernetesservice/controller_test.go

    				{Name: "baz", Port: 1000, Protocol: "TCP", TargetPort: intstr.FromInt32(1000)},
    			},
    			serviceType: corev1.ServiceTypeClusterIP,
    			service: &corev1.Service{
    				ObjectMeta: om("foo"),
    				Spec: corev1.ServiceSpec{
    					Ports: []corev1.ServicePort{
    						{Name: "foo", Port: 8080, Protocol: "TCP", TargetPort: intstr.FromInt32(8080)},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. pkg/kubelet/lifecycle/handlers_test.go

    	tests := []struct {
    		Name        string
    		Port        intstr.IntOrString
    		ExpectError bool
    		Expected    string
    	}{
    		{
    			Name:     "consistent/with port",
    			Port:     intstr.FromString("70"),
    			Expected: "https://foo:70/bar",
    		}, {
    			Name:        "consistent/without port",
    			Port:        intstr.FromString(""),
    			ExpectError: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    			tp := 0
    			if p == nil {
    				continue
    			}
    			if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.String) {
    				// Do not validate named ports
    				continue
    			}
    			if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.Int) {
    				tp = int(p.TargetPort.IntVal.GetValue())
    			}
    			if tp == 0 && p.Port > 1024 {
    				// Target port defaults to port. If its >1024, it is safe.
    				continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta1/rollingupdatedeployment.go

    package v1beta1
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateDeploymentApplyConfiguration represents an declarative configuration of the RollingUpdateDeployment type for use
    // with apply.
    type RollingUpdateDeploymentApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/rollingupdatedaemonset.go

    package v1beta2
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateDaemonSetApplyConfiguration represents an declarative configuration of the RollingUpdateDaemonSet type for use
    // with apply.
    type RollingUpdateDaemonSetApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. pkg/kubelet/prober/prober_test.go

    	}{
    		{&v1.TCPSocketAction{Port: intstr.FromInt32(-1)}, false, "", -1},
    		{&v1.TCPSocketAction{Port: intstr.FromString("")}, false, "", -1},
    		{&v1.TCPSocketAction{Port: intstr.FromString("-1")}, false, "", -1},
    		{&v1.TCPSocketAction{Port: intstr.FromString("not-found")}, false, "", -1},
    		{&v1.TCPSocketAction{Port: intstr.FromString("found")}, true, "1.2.3.4", 93},
    		{&v1.TCPSocketAction{Port: intstr.FromInt32(76)}, true, "1.2.3.4", 76},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top