-
Notifications
You must be signed in to change notification settings - Fork 244
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
Added confirmation for storage deletion #447
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.
Please don't forget to update tests.
cmd/storage.go
Outdated
if storageForceDeleteflag { | ||
confirmDeletion = "y" | ||
} else { | ||
fmt.Printf("Are you sure you want to delete the application: %v? [y/N] ", storageName) |
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.
application?
9b71a1a
to
5f27b38
Compare
ping @kadel |
cmd/storage.go
Outdated
err = storage.Remove(client, storageName, applicationName, componentName) | ||
checkError(err, "failed to delete storage") | ||
switch storageName { | ||
case "": |
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.
deleting all storage from component was removed in #463
This should be addressed in rebase
cmd/storage.go
Outdated
if storageForceDeleteflag { | ||
confirmDeletion = "y" | ||
} else { | ||
fmt.Printf("Are you sure you want to delete the storage: %v? [y/N] ", storageName) |
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.
It would be good if this would also show if the storage is mounted or not and if yes than to what component.
If not mounted:
Are you sure you want to delete the storage %v?
if mounted:
Are you sure you want to delete the storage %v mounted to %s in %s component?
For example:
Are you sure you want to delete the storage data mounted to /data in backend component?
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've opened new issue to address this. So we don't' have to block this pr
Why only partially? |
Sorry about that. It needs another rebase :-( |
@kadel no worries, that was easy rebase :P |
Great work @surajnarwade. |
fixes #228