Skip to content
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

Merged
merged 14 commits into from
Jul 2, 2024
Merged

Experimental: istio-router-check tool #403

merged 14 commits into from
Jul 2, 2024

Conversation

cainelli
Copy link
Collaborator

First work towards envoy router check tool.

cainelli added 4 commits June 26, 2024 10:43
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]>
@cainelli cainelli requested review from x-way and gygrobot as code owners June 26, 2024 14:22
@cainelli cainelli changed the title Experimental istio-router-check Experimental: istio-router-check tool Jun 26, 2024
@cainelli cainelli requested review from Smeb and emes4 June 26, 2024 14:23
Signed-off-by: Fernando Cainelli <[email protected]>
Comment on lines +95 to +98
out, err := routerCheck.CombinedOutput()
if err != nil {
return fmt.Errorf("%s", out)
}
Copy link
Contributor

@Smeb Smeb Jun 28, 2024

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

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
}
Copy link
Contributor

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.

Smeb and others added 8 commits July 1, 2024 09:37
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]>
@cainelli cainelli merged commit 5947f1e into main Jul 2, 2024
4 checks passed
@cainelli cainelli deleted the router-check-tool branch July 2, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants