-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
uninstall: fix no confirmation when istiod cannot be connected #47617
Conversation
🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test? Courtesy of your friendly test nag. |
can you add a test for this? |
@zirain There was no test for this previously. Since we are using MockClient to test CLIClient, which doesn't return errors when retrieving proxy info from Istiod, If we want to test this simple check, we have to add hacky logics. However I have the sample outputs:
If we don't have the logics in this PR, the two situation mentioned above will be skipped without confirmation. |
In response to a cherrypick label: new pull request created: #47652 |
Please provide a description of this PR:
Currently, when istiod cannot be connected, the components will be uninstalled without any confirmation. Not sure if the behavior - skipping confirmation when no proxy info was obtained - was intentional, however I think it doesn't mean there's no proxy so it's better to have a confirmation like other situations do.