Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DependsOnConfig (0.14 sec)

  1. pilot/pkg/xds/proxy_dependencies.go

    		return false
    	}
    	// Detailed config dependencies check.
    	switch proxy.Type {
    	case model.SidecarProxy:
    		if proxy.SidecarScope.DependsOnConfig(config, push.Mesh.RootNamespace) {
    			return true
    		} else if proxy.PrevSidecarScope != nil && proxy.PrevSidecarScope.DependsOnConfig(config, push.Mesh.RootNamespace) {
    			return true
    		}
    	case model.Router:
    		if config.Kind == kind.ServiceEntry {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. pilot/pkg/model/sidecar.go

    	return ilw.mostSpecificWildcardVsIndex
    }
    
    // DependsOnConfig determines if the proxy depends on the given config.
    // Returns whether depends on this config or this kind of config is not scopeZd(unknown to be depended) here.
    func (sc *SidecarScope) DependsOnConfig(config ConfigKey, rootNs string) bool {
    	if sc == nil {
    		return true
    	}
    
    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. pilot/pkg/model/sidecar_test.go

    			if len(tt.egress) == 0 {
    				sidecarScope = DefaultSidecarScopeForNamespace(ps, "default")
    			}
    
    			for k, v := range tt.contains {
    				if ok := sidecarScope.DependsOnConfig(k, ps.Mesh.RootNamespace); ok != v {
    					t.Fatalf("Expected contains %v-%v, but no match", k, v)
    				}
    			}
    		})
    	}
    }
    
    func TestRootNsSidecarDependencies(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
Back to top