Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for proxyMatch (0.11 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)
  3. pilot/pkg/model/push_context.go

    		}
    		// merge EnvoyFilterWrapper
    		for _, efw := range matchedEnvoyFilters {
    			for applyTo, cps := range efw.Patches {
    				for _, cp := range cps {
    					if proxyMatch(proxy, cp) {
    						out.Patches[applyTo] = append(out.Patches[applyTo], cp)
    					}
    				}
    			}
    		}
    	}
    
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
Back to top