Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for FilterGatewayClusterConfig (0.53 sec)

  1. pilot/pkg/features/experimental.go

    	"time"
    
    	"go.uber.org/atomic"
    
    	"istio.io/istio/pkg/env"
    	"istio.io/istio/pkg/log"
    )
    
    // Define experimental features here.
    var (
    	// FilterGatewayClusterConfig controls if a subset of clusters(only those required) should be pushed to gateways
    	FilterGatewayClusterConfig = env.Register("PILOT_FILTER_GATEWAY_CLUSTER_CONFIG", false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. pilot/pkg/xds/proxy_dependencies.go

    			return true
    		}
    	case model.Router:
    		if config.Kind == kind.ServiceEntry {
    			// If config is ServiceEntry, name of the config is service's FQDN
    			if features.FilterGatewayClusterConfig && !push.ServiceAttachedToGateway(config.Name, proxy) {
    				return false
    			}
    
    			hostname := host.Name(config.Name)
    			// gateways have default sidecar scopes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pilot/pkg/xds/cds.go

    	// If none set, we will always push
    	if len(req.ConfigsUpdated) == 0 {
    		return true
    	}
    
    	checkGateway := false
    	for config := range req.ConfigsUpdated {
    		if proxy.Type == model.Router {
    			if features.FilterGatewayClusterConfig {
    				if _, f := pushCdsGatewayConfig[config.Kind]; f {
    					return true
    				}
    			}
    			if config.Kind == kind.Gateway {
    				// Do the check outside of the loop since its slow; just trigger we need it
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 21:27:52 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pilot/pkg/xds/proxy_dependencies_test.go

    				t.Fatalf("Got needs push = %v, expected %v", got, tt.want)
    			}
    		})
    	}
    
    	// test for gateway proxy dependencies with PILOT_FILTER_GATEWAY_CLUSTER_CONFIG enabled.
    	test.SetForTest(t, &features.FilterGatewayClusterConfig, true)
    	test.SetForTest(t, &features.JwksFetchMode, jwt.Envoy)
    
    	const (
    		fooSvc       = "foo"
    		extensionSvc = "extension"
    		jwksSvc      = "jwks"
    	)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster_test.go

    		Http: &networking.ConnectionPoolSettings_HTTPSettings{
    			Http1MaxPendingRequests: 1,
    			IdleTimeout:             &durationpb.Duration{Seconds: 15},
    		},
    	}
    
    	test.SetForTest(t, &features.FilterGatewayClusterConfig, false)
    	for _, tc := range cases {
    		settingsName := "default"
    		if settings != nil {
    			settingsName = "override"
    		}
    		testName := fmt.Sprintf("%s-%s-%s", tc.clusterName, settingsName, tc.proxyType)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. pilot/pkg/model/push_context.go

    		exportedToNamespaceByGateway: map[types.NamespacedName][]config.Config{},
    		delegates:                    map[ConfigKey][]ConfigKey{},
    		referencedDestinations:       map[string]sets.String{},
    	}
    	if features.FilterGatewayClusterConfig {
    		out.destinationsByGateway = make(map[string]sets.String)
    	}
    	return out
    }
    
    // destinationRuleIndex is the index of destination rules by various fields.
    type destinationRuleIndex struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/cluster.go

    func (configgen *ConfigGeneratorImpl) BuildClusters(proxy *model.Proxy, req *model.PushRequest) ([]*discovery.Resource, model.XdsLogDetails) {
    	// In Sotw, we care about all services.
    	var services []*model.Service
    	if features.FilterGatewayClusterConfig && proxy.Type == model.Router {
    		services = req.Push.GatewayServices(proxy)
    	} else {
    		services = proxy.SidecarScope.Services()
    	}
    	return configgen.buildClusters(proxy, req, services)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  8. pilot/pkg/model/push_context_test.go

    				t.Errorf("want %+v, got %+v", tt.wantHosts, gotHosts)
    			}
    		})
    	}
    }
    
    func TestInitVirtualService(t *testing.T) {
    	test.SetForTest(t, &features.FilterGatewayClusterConfig, true)
    	ps := NewPushContext()
    	env := &Environment{Watcher: mesh.NewFixedWatcher(&meshconfig.MeshConfig{RootNamespace: "istio-system"})}
    	ps.Mesh = env.Mesh()
    	configStore := NewFakeStore()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
Back to top