Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for selectTrafficPolicyComponents (0.2 sec)

  1. pilot/pkg/networking/core/cluster_traffic_policy.go

    	}
    
    	if opts.mutable.cluster.GetType() == cluster.Cluster_ORIGINAL_DST {
    		opts.mutable.cluster.LbPolicy = cluster.Cluster_CLUSTER_PROVIDED
    	}
    }
    
    // selectTrafficPolicyComponents returns the components of TrafficPolicy that should be used for given port.
    func selectTrafficPolicyComponents(policy *networking.TrafficPolicy) (
    	*networking.ConnectionPoolSettings,
    	*networking.OutlierDetection,
    	*networking.LoadBalancerSettings,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			test.SetForTest(t, &features.VerifyCertAtClient, testCase.verifyCertAtClient)
    			selectTrafficPolicyComponents(testCase.policy)
    			if testCase.policy.Tls.CaCertificates != testCase.expectedCARootPath {
    				t.Errorf("%v got %v when expecting %v", testCase.name, testCase.policy.Tls.CaCertificates, testCase.expectedCARootPath)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
Back to top