fluvio
fluvio copied to clipboard
`fluvio cluster delete` should prompt with cluster and endpoint name confirmation
Currently the user can delete an unintended cluster with fluvio cluster delete
because the cluster the profile is pointing to is not reported.
Change: Add an interaction to print the current cluster and endpoint and ask for confirmation. The user is asked to type the name of the cluster.
$ fluvio cluster delete
WARNING: You are about to delete CLUSTER/ENDPOINT. This operation is irreversible
and the data stored in your cluster will be permanently lost.
Please type the cluster name to confirm: CLUSTER <enter> (to confirm) / or CTRL-C (to cancel)
Your cluster CLUSTER has been deleted
Note:
- add
-f
\--force
option to bypass the prompt for CI and automation tool
reference:
fluvio profile list
returns a table of PROFILE, CLUSTER, ENDPOINT logic to retrieve current cluster/endpoint can be found with that command logic
Hey @digikata I was dealing with #3481 but I didn't got follow up yet. Can I take this one meanwhile?
@demfabris, feel free to take this item. Please note the update in the issue definition.
should add a --force
option to bypass the prompt for CI and automation tool
Stale issue message
Hi! I tried to contribute on this issue. Please let me know if there is any feedback :)
Hi @PanGan21, thanks for the contribution! We'll definitely take a look at it
Solved w/ https://github.com/infinyon/fluvio/pull/4034 from @PanGan21