Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 83 for destinationFile (0.36 sec)

  1. pkg/config/analysis/analyzers/testdata/destinationrule-simple-destination-credentialname-selector.yaml

    apiVersion: networking.istio.io/v1alpha3
    kind: DestinationRule
    metadata:
      name: db-tls
    spec:
      host: mydbserver.prod.svc.cluster.local
      trafficPolicy:
        tls:
          mode: SIMPLE
          credentialName: db-credential
      workloadSelector:
          matchLabels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 07:22:31 UTC 2024
    - 271 bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/destinationrule/ca-certificates.go

    	return analysis.Metadata{
    		Name:        "destinationrule.CaCertificateAnalyzer",
    		Description: "Checks if caCertificates is set when TLS mode is SIMPLE/MUTUAL",
    		Inputs: []config.GroupVersionKind{
    			gvk.DestinationRule,
    		},
    	}
    }
    
    func (c *CaCertificateAnalyzer) Analyze(ctx analysis.Context) {
    	ctx.ForEach(gvk.DestinationRule, func(r *resource.Instance) bool {
    		c.analyzeDestinationRule(r, ctx)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 07:22:31 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/networkfilter.go

    }
    
    func maybeSetHashPolicy(destinationRule *networking.DestinationRule, tcpProxy *tcp.TcpProxy, subsetName string) {
    	if destinationRule != nil {
    		useSourceIP := destinationRule.GetTrafficPolicy().GetLoadBalancer().GetConsistentHash().GetUseSourceIp()
    		for _, subset := range destinationRule.Subsets {
    			if subset.Name != subsetName {
    				continue
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. pilot/pkg/xds/endpoints/endpoint_builder_test.go

    			dr: &config.Config{
    				Spec: &networking.DestinationRule{
    					TrafficPolicy: &networking.TrafficPolicy{
    						OutlierDetection: &networking.OutlierDetection{
    							ConsecutiveErrors: 5,
    						},
    					},
    				},
    			},
    			expectedLabels: nil,
    		},
    		{
    			name: "failover priority disabled",
    			dr: &config.Config{
    				Spec: &networking.DestinationRule{
    					TrafficPolicy: &networking.TrafficPolicy{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. pilot/pkg/xds/endpoints/endpoint_builder.go

    			b.failoverPriorityLabels = util.GetFailoverPriorityLabels(b.proxy.Labels, lbSetting.FailoverPriority)
    		}
    	}
    }
    
    func (b *EndpointBuilder) DestinationRule() *v1alpha3.DestinationRule {
    	if dr := b.destinationRule.GetRule(); dr != nil {
    		dr, _ := dr.Spec.(*v1alpha3.DestinationRule)
    		return dr
    	}
    	return nil
    }
    
    func (b *EndpointBuilder) Type() string {
    	return model.EDSType
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/networkfilter_test.go

    					},
    				},
    			},
    		},
    	}
    
    	destinationRule := config.Config{
    		Meta: config.Meta{
    			GroupVersionKind: gvk.DestinationRule,
    			Name:             "acme-v3-1",
    			Namespace:        "not-default",
    		},
    		Spec: destinationRuleSpec,
    	}
    
    	subsetdestinationRuleSpec := &networking.DestinationRule{
    		Host: "subsettest.com",
    		TrafficPolicy: &networking.TrafficPolicy{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. tests/integration/security/ca_custom_root/secure_naming_test.go

    						name            string
    						destinationRule string
    						expectSuccess   bool
    					}{
    						{
    							name:            "connection fails when DR doesn't match SA",
    							destinationRule: defaultIdentityDR,
    							expectSuccess:   false,
    						},
    						{
    							name:            "connection succeeds when DR matches SA",
    							destinationRule: correctIdentityDR,
    							expectSuccess:   true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/analyzers_test.go

    			"testdata/destinationrule-mutual-destination.yaml",
    		},
    		analyzer: &destinationrule.CaCertificateAnalyzer{},
    		expected: []message{
    			{msg.NoServerCertificateVerificationDestinationLevel, "DestinationRule db-mtls"},
    		},
    	},
    	{
    		name: "destinationrule with no cacert, simple at portlevel",
    		inputFiles: []string{
    			"testdata/destinationrule-simple-port.yaml",
    		},
    		analyzer: &destinationrule.CaCertificateAnalyzer{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 07:22:31 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_cache.go

    	return h.Sum64()
    }
    
    func (t *clusterCache) DependentConfigs() []model.ConfigHash {
    	drs := t.destinationRule.GetFrom()
    	configs := make([]model.ConfigHash, 0, len(drs)+1+len(t.envoyFilterKeys))
    	if t.destinationRule != nil {
    		for _, dr := range drs {
    			configs = append(configs, model.ConfigKey{Kind: kind.DestinationRule, Name: dr.Name, Namespace: dr.Namespace}.HashCode())
    		}
    	}
    	if t.service != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/cluster_builder.go

    	cfg := proxy.SidecarScope.DestinationRule(model.TrafficDirectionInbound, proxy, instance.Service.Hostname).GetRule()
    	if cfg != nil {
    		destinationRule := CastDestinationRule(cfg)
    		opts.isDrWithSelector = destinationRule.GetWorkloadSelector() != nil
    		if destinationRule.TrafficPolicy != nil {
    			opts.policy, _ = util.GetPortLevelTrafficPolicy(destinationRule.TrafficPolicy, instance.Port.ServicePort)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
Back to top