Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for portMap (0.15 sec)

  1. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    					TLSMode:        "istio",
    					Namespace:      "ns1",
    					Locality: model.Locality{
    						ClusterID: cluster.ID(clusterID),
    					},
    				},
    				PortMap: map[string]uint32{
    					"http": 80,
    				},
    			},
    		},
    		{
    			name: "simple - tls mode disabled",
    			wle: config.Config{
    				Meta: config.Meta{
    					Namespace: "ns1",
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  2. pilot/pkg/model/service.go

    	// Where the workloadInstance come from, valid values are`Pod` or `WorkloadEntry`
    	Kind     workloadKind      `json:"kind"`
    	Endpoint *IstioEndpoint    `json:"endpoint,omitempty"`
    	PortMap  map[string]uint32 `json:"portMap,omitempty"`
    	// Can only be selected by service entry of DNS type.
    	DNSServiceEntryOnly bool `json:"dnsServiceEntryOnly,omitempty"`
    }
    
    func (instance *WorkloadInstance) CmpOpts() []cmp.Option {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  3. pilot/pkg/model/endpointshards.go

    // the results by service port number. This is a bit weird, but lets us efficiently construct the format the caller needs.
    func (es *EndpointShards) CopyEndpoints(portMap map[string]int, ports sets.Set[int]) map[int][]*IstioEndpoint {
    	es.RLock()
    	defer es.RUnlock()
    	res := map[int][]*IstioEndpoint{}
    	for _, v := range es.Shards {
    		for _, ep := range v {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. pilot/pkg/networking/grpcgen/lds.go

    			ln.RequestedNames.Insert(requestedName)
    
    			// only build the portmap if we aren't filtering this name yet, or if the existing filter is non-empty
    			if hasPort && (!ok || len(ln.Ports) != 0) {
    				if ln.Ports == nil {
    					ln.Ports = map[string]struct{}{}
    				}
    				ln.Ports.Insert(port)
    			} else if !hasPort {
    				// if we didn't have a port, we should clear the portmap
    				ln.Ports = nil
    			}
    			filter[name] = ln
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/serviceentry/conversion.go

    			// if not port name not match, use the targetPort specified in ServiceEntry
    			// if both not matched, fallback to ServiceEntry port number.
    			var targetPort uint32
    			if port, ok := workloadInstance.PortMap[serviceEntryPort.Name]; ok && port > 0 {
    				targetPort = port
    			} else if serviceEntryPort.TargetPort > 0 {
    				targetPort = serviceEntryPort.TargetPort
    			} else {
    				targetPort = serviceEntryPort.Number
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. pilot/pkg/model/gateway.go

    	// clusters to be sent to the workload
    	ContainsAutoPassthroughGateways bool
    
    	// PortMap defines a mapping of targetPorts to the set of Service ports that reference them
    	PortMap GatewayPortMap
    
    	// VerifiedCertificateReferences contains a set of all credentialNames referenced by gateways *in the same namespace as the proxy*.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/pod.go

    	workloadInstance := &model.WorkloadInstance{
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    		Kind:      model.PodKind,
    		Endpoint:  ep,
    		PortMap:   getPortMap(pod),
    	}
    	pc.c.handlers.NotifyWorkloadHandlers(workloadInstance, ev)
    }
    
    func getPortMap(pod *v1.Pod) map[string]uint32 {
    	pmap := map[string]uint32{}
    	for _, c := range pod.Spec.Containers {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/types.go

    	}
    	if len(n.UsedPorts) > 0 {
    		// HostPortInfo is a map-in-map struct
    		// make sure it's deep copied
    		for ip, portMap := range n.UsedPorts {
    			clone.UsedPorts[ip] = make(map[ProtocolPort]struct{})
    			for protocolPort, v := range portMap {
    				clone.UsedPorts[ip][protocolPort] = v
    			}
    		}
    	}
    	if len(n.PodsWithAffinity) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/controller.go

    	// by default, use the numbered targetPort
    	istioEndpoint.EndpointPort = uint32(targetPort.num)
    
    	if targetPort.name != "" {
    		// This is a named port, find the corresponding port in the port map
    		matchedPort := wi.PortMap[targetPort.name]
    		if matchedPort != 0 {
    			istioEndpoint.EndpointPort = matchedPort
    		} else if targetPort.explicitName {
    			// No match found, and we expect the name explicitly in the service, skip this endpoint
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  10. pkg/volume/iscsi/iscsi.go

    // volumeName: pv0001
    func (iscsi *iscsiDisk) GetPodDeviceMapPath() (string, string) {
    	return iscsi.iscsiPodDeviceMapPath()
    }
    
    func portalMounter(portal string) string {
    	if !strings.Contains(portal, ":") {
    		portal = portal + ":3260"
    	}
    	return portal
    }
    
    // get iSCSI volume info: readOnly and fstype
    func getISCSIVolumeInfo(spec *volume.Spec) (bool, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top