Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for servicePort (0.54 sec)

  1. pilot/pkg/model/push_context_test.go

    	}
    
    	cases := []struct {
    		name              string
    		serviceNamespace  string
    		servicePort       int
    		serviceResolution Resolution
    		serviceInstances  []*ServiceInstance
    		wanted            MutualTLSMode
    	}{
    		{
    			name:              "from namespace policy",
    			serviceNamespace:  wholeNS,
    			servicePort:       80,
    			serviceResolution: ClientSideLB,
    			wanted:            MTLSStrict,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  2. plugin/pkg/admission/resourcequota/admission_test.go

    	}
    	newService := &api.Service{
    		ObjectMeta: metav1.ObjectMeta{Name: "service", Namespace: "test"},
    		Spec: api.ServiceSpec{
    			Type:  api.ServiceTypeNodePort,
    			Ports: []api.ServicePort{{Port: 1234}},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier.go

    	firewallChainName      utiliptables.Chain
    	externalChainName      utiliptables.Chain
    }
    
    // returns a new proxy.ServicePort which abstracts a serviceInfo
    func newServiceInfo(port *v1.ServicePort, service *v1.Service, bsvcPortInfo *proxy.BaseServicePortInfo) proxy.ServicePort {
    	svcPort := &servicePortInfo{BaseServicePortInfo: bsvcPortInfo}
    
    	// Store the following for performance reasons.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/sidecar_simulation_test.go

    	}
    	return ret
    }
    
    func makeInstances(proxy *model.Proxy, svc *model.Service, servicePort int, targetPort int) []*model.ServiceInstance {
    	ret := []*model.ServiceInstance{}
    	for _, p := range svc.Ports {
    		if p.Port != servicePort {
    			continue
    		}
    		ret = append(ret, &model.ServiceInstance{
    			Service:     svc,
    			ServicePort: p,
    			Endpoint: &model.IstioEndpoint{
    				Address:         proxy.IPAddresses[0],
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  5. pkg/proxy/winkernel/proxier.go

    		refCountMap[hnsID] = new(uint16)
    		refCount = refCountMap[hnsID]
    	}
    	return refCount
    }
    
    // returns a new proxy.ServicePort which abstracts a serviceInfo
    func (proxier *Proxier) newServiceInfo(port *v1.ServicePort, service *v1.Service, bsvcPortInfo *proxy.BaseServicePortInfo) proxy.ServicePort {
    	info := &serviceInfo{BaseServicePortInfo: bsvcPortInfo}
    	preserveDIP := service.Annotations["preserve-destination"] == "true"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/defaults_test.go

    	in := &v1.Service{Spec: v1.ServiceSpec{Ports: []v1.ServicePort{{Port: 1234}}}}
    	obj := roundTrip(t, runtime.Object(in))
    	out := obj.(*v1.Service)
    	if out.Spec.Ports[0].TargetPort != intstr.FromInt32(1234) {
    		t.Errorf("Expected TargetPort to be defaulted, got %v", out.Spec.Ports[0].TargetPort)
    	}
    
    	in = &v1.Service{Spec: v1.ServiceSpec{Ports: []v1.ServicePort{{Port: 1234, TargetPort: intstr.FromInt32(5678)}}}}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  7. pkg/workloadapi/workload.pb.go

    	state         protoimpl.MessageState
    	sizeCache     protoimpl.SizeCache
    	unknownFields protoimpl.UnknownFields
    
    	// Port the service is reached at (frontend).
    	ServicePort uint32 `protobuf:"varint,1,opt,name=service_port,json=servicePort,proto3" json:"service_port,omitempty"`
    	// Port the service forwards to (backend).
    	TargetPort uint32 `protobuf:"varint,2,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 65.9K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/proxier.go

    	// The following fields are computed and stored for performance reasons.
    	nameString string
    }
    
    // returns a new proxy.ServicePort which abstracts a serviceInfo
    func newServiceInfo(port *v1.ServicePort, service *v1.Service, bsvcPortInfo *proxy.BaseServicePortInfo) proxy.ServicePort {
    	svcPort := &servicePortInfo{BaseServicePortInfo: bsvcPortInfo}
    
    	// Store the following for performance reasons.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    	ports []int32, selector map[string]string, ip string,
    ) *corev1.Service {
    	svcPorts := make([]corev1.ServicePort, 0)
    	for _, p := range ports {
    		svcPorts = append(svcPorts, corev1.ServicePort{
    			Name:     "tcp-port",
    			Port:     p,
    			Protocol: "http",
    		})
    	}
    
    	return &corev1.Service{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    		},
    	}
    
    	updatedHTTPDNSPort := func() *config.Config {
    		c := updatedHTTPDNS.DeepCopy()
    		se := c.Spec.(*networking.ServiceEntry)
    		var ports []*networking.ServicePort
    		ports = append(ports, se.Ports...)
    		ports = append(ports, &networking.ServicePort{Number: 9090, Name: "http-new-port", Protocol: "http"})
    		se.Ports = ports
    		return &c
    	}()
    
    	updatedEndpoint := func() *config.Config {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
Back to top