Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toMeshConfigProxyConfig (0.17 sec)

  1. pilot/pkg/model/proxy_config.go

    	for _, pc := range p.namespaceToProxyConfigs[namespace] {
    		if pc.GetSelector() == nil {
    			// return the first match. this is consistent since
    			// we sort the resources by creation time beforehand.
    			return toMeshConfigProxyConfig(pc)
    		}
    	}
    	return nil
    }
    
    // mergedWorkloadConfig merges ProxyConfig resources matching the given namespace and labels.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 21 01:23:19 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. pilot/pkg/model/proxy_config_test.go

    				},
    			},
    			expected: &meshconfig.ProxyConfig{
    				ProxyMetadata: map[string]string{
    					"a": "b",
    					"c": "d",
    				},
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		converted := toMeshConfigProxyConfig(tc.pc)
    		assert.Equal(t, converted, tc.expected)
    	}
    }
    
    func TestMergeWithPrecedence(t *testing.T) {
    	cases := []struct {
    		name     string
    		first    *meshconfig.ProxyConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 21 01:23:19 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top