Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sortHTTPRoutes (0.11 sec)

  1. pilot/pkg/config/kube/gateway/conversion.go

    		}
    	}
    	for _, vsByHost := range gatewayRoutes {
    		for _, cfg := range vsByHost {
    			vs := cfg.Spec.(*istio.VirtualService)
    			sortHTTPRoutes(vs.Http)
    		}
    	}
    	for _, vsByHost := range meshRoutes {
    		for _, cfg := range vsByHost {
    			vs := cfg.Spec.(*istio.VirtualService)
    			sortHTTPRoutes(vs.Http)
    		}
    	}
    }
    
    func serviceEntryHosts(ses []config.Config, name, namespace string) []string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/conversion_test.go

    										Exact: "value1",
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			sortHTTPRoutes(tt.in)
    			if !reflect.DeepEqual(tt.in, tt.out) {
    				t.Fatalf("expected %v, got %v", tt.out, tt.in)
    			}
    		})
    	}
    }
    
    func TestReferencePolicy(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 34.9K bytes
    - Viewed (0)
Back to top