Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 282 for intVar (0.17 sec)

  1. pkg/probe/util_test.go

    func TestResolveContainerPort(t *testing.T) {
    	t.Parallel()
    	type args struct {
    		param     intstr.IntOrString
    		container *v1.Container
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    int
    		wantErr bool
    	}{
    		{
    			name: "get port by int type",
    			args: args{
    				param:     intstr.IntOrString{Type: 0, IntVal: 443},
    				container: &v1.Container{},
    			},
    			want:    443,
    			wantErr: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 06:14:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. operator/pkg/translate/strategic_port_merge_test.go

    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    var (
    	httpsPort = &v1.ServicePort{
    		Name:       "https",
    		Protocol:   v1.ProtocolTCP,
    		Port:       443,
    		TargetPort: intstr.IntOrString{IntVal: 8443},
    	}
    	quicPort = &v1.ServicePort{
    		Name:       "http3-quic",
    		Protocol:   v1.ProtocolUDP,
    		Port:       443,
    		TargetPort: intstr.IntOrString{IntVal: 8443},
    	}
    	httpPort = &v1.ServicePort{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 21 03:06:37 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  3. test/syntax/initvar.go

    Robert Griesemer <******@****.***> 1487027284 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 23:15:32 UTC 2017
    - 467 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    			if wireType != 0 {
    				return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType)
    			}
    			m.IntVal = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.IntVal |= int32(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.proto

    */
    
    
    // This file was autogenerated by go-to-protobuf. Do not edit it manually!
    
    syntax = "proto2";
    
    package k8s.io.apimachinery.pkg.util.intstr;
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/util/intstr";
    
    // IntOrString is a type that can hold an int32 or a string.  When used in
    // JSON or YAML marshalling and unmarshalling, it produces or consumes the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 04 23:57:45 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/util.go

    		// TODO(@hzxuzhonghu): check protocol as well as port
    		if p.Name == servicePort.Name || p.Port == int32(servicePort.Port) {
    			if p.TargetPort.Type == intstr.Int && p.TargetPort.IntVal > 0 {
    				return serviceTargetPort{num: int(p.TargetPort.IntVal), name: p.Name, explicitName: false}
    			}
    			return serviceTargetPort{num: 0, name: p.TargetPort.StrVal, explicitName: true}
    		}
    	}
    	// should never happen
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 28 02:01:47 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    								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)
  8. common-protos/k8s.io/apimachinery/pkg/util/intstr/generated.proto

    */
    
    
    // This file was autogenerated by go-to-protobuf. Do not edit it manually!
    
    syntax = "proto2";
    
    package k8s.io.apimachinery.pkg.util.intstr;
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/util/intstr";
    
    // IntOrString is a type that can hold an int32 or a string.  When used in
    // JSON or YAML marshalling and unmarshalling, it produces or consumes the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. pkg/registry/networking/networkpolicy/strategy_test.go

    					MatchLabels: map[string]string{"c": "d"},
    				},
    			},
    		},
    	}
    
    	ports := []networking.NetworkPolicyPort{
    		{
    			Protocol: &protocolTCP,
    			Port:     &intstr.IntOrString{Type: intstr.Int, IntVal: 31000},
    		},
    	}
    
    	ingress.Ports = ports
    	egress.Ports = ports
    
    	if hasEndPort {
    		ingress.Ports[0].EndPort = &endPort
    		egress.Ports[0].EndPort = &endPort
    	}
    
    	if isIngress {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. pkg/apis/extensions/v1beta1/conversion.go

    		return err
    	}
    	if len(in.ServiceName) > 0 || in.ServicePort.IntVal != 0 || in.ServicePort.StrVal != "" || in.ServicePort.Type == intstr.String {
    		out.Service = &networking.IngressServiceBackend{}
    		out.Service.Name = in.ServiceName
    		out.Service.Port.Name = in.ServicePort.StrVal
    		out.Service.Port.Number = in.ServicePort.IntVal
    	}
    	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)
Back to top