-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat: CLI add printout of what has been deleted #8894
Conversation
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.
Thank you, LGTM
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.
LGTM
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.
Just wanted to note that this will say things are deleted even if nothing is deleted. There should be some confirmation that the app was actually deleted before the message is displayed.
An example of this is when you try to delete an app that doesn't exist:
dist/argocd app delete foo
Are you sure you want to delete 'foo' and all its resources? [y/n]
y
application 'foo' deleted
FATA[0003] rpc error: code = NotFound desc = applications.argoproj.io "foo" not found
This would also occur when n
is input to say not to delete an app.
Maybe the deletion confirmation message should be output after here assuming the err is nil from the Delete call? |
5b71803
to
f6f6066
Compare
@danielhelfand thanks for catching that, let me know if what I have now is better! |
Codecov Report
@@ Coverage Diff @@
## master #8894 +/- ##
==========================================
+ Coverage 43.40% 44.92% +1.51%
==========================================
Files 186 212 +26
Lines 23373 25262 +1889
==========================================
+ Hits 10145 11348 +1203
- Misses 11779 12310 +531
- Partials 1449 1604 +155
Continue to review full report at Codecov.
|
@reginapizza lgtm! Thanks for making the change. You need to rebase around master branch to fix this failed workflow run: |
Signed-off-by: Regina Scott <rescott@redhat.com>
f6f6066
to
3243807
Compare
Signed-off-by: Regina Scott <rescott@redhat.com> Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
Closes #8828
CLI will print out the following upon resource deletion:
Checklist: