-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental: istio-router-check tool #403
Conversation
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
out, err := routerCheck.CombinedOutput() | ||
if err != nil { | ||
return fmt.Errorf("%s", out) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we don't emit the error at all to the user - is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cobra itself will show the error to the user, if we print here it would show the error twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean that the actual value of err
(that we check as err != nil
) is not returned.
return nil, fmt.Errorf("failed to generate routes: %w", err) | ||
} | ||
return rg.routes, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would benefit from a high level comment describing overall what we're doing since it's a little intricate in terms of how it depends on the istio test framework.
Signed-off-by: Fernando Cainelli <[email protected]>
… into router-check-tool Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
First work towards envoy router check tool.