Skip to content

[FEATURE] Should prompt users in nuke.sh for confirmation before the script proceeds #188

@drkho

Description

@drkho

Describe the bug
In nuke.sh, there should be a prompt(like the one in uninstall.sh) added to give users a chance to confirm before proceeding to clean up...esp nuke is a destructive script like uninstall.sh

To Reproduce
Steps to reproduce the behavior:

  1. Run ./nuke.sh
  2. No prompt and just proceed

Expected behavior
Added a prompt (from uninstall.sh)

echo "***"
printf "\n"
echo "This script will destroy Open Cluster Management from the current OpenShift target cluster:"
printf "\n"
oc cluster-info | head -n 1 | awk '{print $NF}'
printf "\n"
echo "If you would like to proceed with cleanup, type: DESTROY"
read -r DESTROY_YES
if [ "${DESTROY_YES}" != "DESTROY" ]; then
  echo "You must type DESTROY to clean up the Hive deployed clusters"
  exit 1
fi

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: all applicable
  • Browser all applicable
  • Snapshot all applicable

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deployspecific to this repository... does not imply product specific issuesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions