Skip to content

Commit

Permalink
add function comment
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Sep 28, 2022
1 parent 53d1843 commit a7a59de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollout/trafficrouting/istio/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,8 @@ func getOrderedVirtualServiceRoutes(httpRouteI []interface{}, managedRoutes []v1
return orderedInterfaceVSVCHTTPRoutes, nil
}

// getVirtualServiceCanaryPort This function returns the port that the canary service is running on. It does this by looking at the
// istio Virtual Service and finding any port from a destination that is suppose to be update via SetWeight.
func getVirtualServiceCanaryPort(unVsvc *unstructured.Unstructured, virtualService v1alpha1.IstioVirtualService) (Port, error) {
httpRoutes, _, err := getVirtualServiceHttpRoutes(unVsvc)
if err != nil {
Expand Down

0 comments on commit a7a59de

Please sign in to comment.