Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for proxyMatch (0.09 sec)

  1. pilot/pkg/model/envoyfilter_test.go

    			if filter.ProxyPrefixMatch != tt.expectedVersionPrefix {
    				t.Errorf("unexpected prefix: got %v wanted %v", filter.ProxyPrefixMatch, tt.expectedVersionPrefix)
    			}
    			for ver, match := range tt.matches {
    				got := proxyMatch(&Proxy{Metadata: &NodeMetadata{IstioVersion: ver}}, filter)
    				if got != match {
    					t.Errorf("expected %v to match %v, got %v", ver, match, got)
    				}
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 27 04:20:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. pilot/pkg/model/envoyfilter.go

    				cpw.Operation = networking.EnvoyFilter_Patch_ADD
    			}
    		}
    		out.Patches[cp.ApplyTo] = append(out.Patches[cp.ApplyTo], cpw)
    	}
    	return out
    }
    
    func proxyMatch(proxy *Proxy, cp *EnvoyFilterConfigPatchWrapper) bool {
    	if cp.Match.Proxy == nil {
    		return true
    	}
    
    	if cp.ProxyPrefixMatch != "" {
    		if !strings.HasPrefix(proxy.Metadata.IstioVersion, cp.ProxyPrefixMatch) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 13:57:28 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top