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

Fix uninstall dry-run has confirmation #46347

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

hanxiaop
Copy link
Member

@hanxiaop hanxiaop commented Aug 7, 2023

Please provide a description of this PR:

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • Ambient
  • Configuration Infrastructure
  • Docs
  • Installation
  • Networking
  • Performance and Scalability
  • Policies and Telemetry
  • Security
  • Test and Release
  • User Experience
  • Developer Infrastructure

Please check any characteristics that apply to this pull request.

  • Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@hanxiaop hanxiaop requested a review from a team as a code owner August 7, 2023 05:53
@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 7, 2023
@@ -250,7 +250,7 @@ func preCheckWarnings(cmd *cobra.Command, kubeClient kube.CLIClient, uiArgs *uni
message += fmt.Sprintf(GatewaysRemovedWarning, gwList)
}
}
if uiArgs.skipConfirmation {
if dryRun || uiArgs.skipConfirmation {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really dry running? It seems like it will just print the message and continue with the run.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dryrun itself is functioning well. This is simply to bypass confirmation in --dry-run mode - which is no need in dryrun, similar to other istioctl commands.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thanks.

Copy link
Member

@ymesika ymesika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -250,7 +250,7 @@ func preCheckWarnings(cmd *cobra.Command, kubeClient kube.CLIClient, uiArgs *uni
message += fmt.Sprintf(GatewaysRemovedWarning, gwList)
}
}
if uiArgs.skipConfirmation {
if dryRun || uiArgs.skipConfirmation {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thanks.

@hanxiaop hanxiaop added the release-notes-none Indicates a PR that does not require release notes. label Aug 7, 2023
@hanxiaop
Copy link
Member Author

hanxiaop commented Aug 7, 2023

/test release-notes

@istio-testing istio-testing merged commit fc399fb into istio:master Aug 7, 2023
@hanxiaop
Copy link
Member Author

/cherry-pick release-1.19

@istio-testing
Copy link
Collaborator

@hanxiaop: new pull request created: #46476

In response to this:

/cherry-pick release-1.19

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes-none Indicates a PR that does not require release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants