Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed May 4, 2023
1 parent 0974afa commit f4fadbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollout/trafficrouting/istio/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,7 @@ func splitManagedRoutesAndNonManagedRoutes(managedRoutes []v1alpha1.MangedRoutes
var found bool = false
for _, managedRoute := range managedRoutes {
// Not checking the cast success here is ok because it covers the case when the route has no name
// when there is no name the cast return an empty string and will just not match the managed route
name, _ := route["name"].(string)
if name == managedRoute.Name {
httpRoutesWithinManagedRoutes = append(httpRoutesWithinManagedRoutes, route)
Expand Down

0 comments on commit f4fadbc

Please sign in to comment.