Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 177 for IntPtr (0.27 sec)

  1. pkg/registry/core/service/storage/storage_test.go

    					svctest.MakeServicePort("p", 80, intstr.FromInt32(80), api.ProtocolTCP),
    					svctest.MakeServicePort("q", 443, intstr.FromInt32(443), api.ProtocolTCP)),
    				svctest.SetNodePorts(93)),
    			expectClusterIPs: true,
    			expectNodePorts:  true,
    		},
    		output: svctest.MakeService("foo", svctest.SetTypeNodePort,
    			svctest.SetPorts(
    				svctest.MakeServicePort("p", 80, intstr.FromInt32(80), api.ProtocolTCP),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  2. pkg/apis/policy/zz_generated.deepcopy.go

    limitations under the License.
    */
    
    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package policy
    
    import (
    	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 *Eviction) DeepCopyInto(out *Eviction) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/policy/v1beta1/zz_generated.deepcopy.go

    limitations under the License.
    */
    
    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1beta1
    
    import (
    	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 *Eviction) DeepCopyInto(out *Eviction) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    		obj.(*metav1.MicroTime).Time = time.Date(2000+i, 1, 1, 1, 1, 1, i*int(time.Microsecond), time.UTC)
    	}
    	funcs[reflect.TypeOf(&intstr.IntOrString{})] = func(s string, i int, obj interface{}) {
    		// use the string as a string value
    		obj.(*intstr.IntOrString).Type = intstr.String
    		obj.(*intstr.IntOrString).StrVal = s + "Value"
    	}
    	return funcs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. operator/pkg/object/objects.go

    	isDefault := func(item any) bool {
    		var ii intstr.IntOrString
    		switch item := item.(type) {
    		case int:
    			ii = intstr.FromInt32(int32(item))
    		case int64:
    			ii = intstr.FromInt32(int32(item))
    		case string:
    			ii = intstr.FromString(item)
    		default:
    			ii = intstr.FromInt32(0)
    		}
    		intVal, err := intstr.GetScaledValueFromIntOrPercent(&ii, 100, false)
    		if err != nil || intVal == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  6. pkg/apis/extensions/v1beta1/conversion.go

    		return err
    	}
    	if in.Service != nil {
    		out.ServiceName = in.Service.Name
    		if len(in.Service.Port.Name) > 0 {
    			out.ServicePort = intstr.FromString(in.Service.Port.Name)
    		} else {
    			out.ServicePort = intstr.FromInt32(in.Service.Port.Number)
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe_test.go

    	"github.com/google/go-cmp/cmp"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	klabels "k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    	apiannotation "istio.io/api/annotation"
    	v1alpha32 "istio.io/api/networking/v1alpha3"
    	"istio.io/client-go/pkg/apis/networking/v1alpha3"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/configdump"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:54:01 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  8. pkg/controller/endpointslice/endpointslice_controller_test.go

    				},
    				Spec: v1.ServiceSpec{
    					Ports: []v1.ServicePort{
    						{Name: "tcp-example", TargetPort: intstr.FromInt32(80), Protocol: v1.ProtocolTCP},
    						{Name: "udp-example", TargetPort: intstr.FromInt32(161), Protocol: v1.ProtocolUDP},
    						{Name: "sctp-example", TargetPort: intstr.FromInt32(3456), Protocol: v1.ProtocolSCTP},
    					},
    					Selector:   map[string]string{"foo": "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  9. 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)
  10. pkg/registry/networking/networkpolicy/storage/storage_test.go

    			object.Spec.Ingress = []networking.NetworkPolicyIngressRule{
    				{
    					Ports: []networking.NetworkPolicyPort{
    						{
    							Protocol: &protocolICMP,
    							Port:     &intstr.IntOrString{Type: intstr.Int, IntVal: 80},
    						},
    					},
    				},
    			}
    			return object
    		},
    	)
    }
    
    func TestDelete(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top