Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for matchPorts (0.11 sec)

  1. pilot/pkg/model/extensions.go

    	if (li.Class == istionetworking.ListenerClassUndefined && li.Port == 0) || len(ts) == 0 {
    		return true
    	}
    
    	for _, match := range ts {
    		if matchMode(match.Mode, li.Class) && matchPorts(match.Ports, li.Port) {
    			return true
    		}
    	}
    	return false
    }
    
    func matchMode(workloadMode typeapi.WorkloadMode, class istionetworking.ListenerClass) bool {
    	switch workloadMode {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. pilot/pkg/model/sidecar.go

    	// nil if this is for the default sidecar scope.
    	IstioListener *networking.IstioEgressListener
    
    	// Specifies whether matching ports is required.
    	matchPort bool
    
    	// List of services imported by this egress listener above.
    	// This will be used by LDS and RDS code when
    	// building the set of virtual hosts or the tcp filterchain matches for
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  3. pkg/config/validation/validation.go

    	// check the URI overlapping match, such as vB.Prefix is '/debugs' and vA.Prefix is '/debug'
    	if strings.HasPrefix(vB.Prefix, vA.Prefix) {
    		// check the port field
    		if vB.MatchPort != vA.MatchPort {
    			return false
    		}
    
    		// check the match method
    		if vA.MatchMethod != vB.MatchMethod {
    			if !strings.HasPrefix(vA.MatchMethod, vB.MatchMethod) {
    				return false
    			}
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top