Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-528

Confirm k8s context with a prompt for deleteAll.bash

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Highest Highest
    • Beijing Release
    • None
    • None

      Today if a user runs deleteAll.bash -n onap script it simply deletes the deployment.

      This is an issue if the user has incorrect context and delete of entire environment happens silently. Get a confirmation from the user before deleting deployment.

       for automated deployments use

      ./deleteAll.bash -n onap -y

       for manual deployments use

       

      ./deleteAll.bash -n onap
      You are about to delete deployment from: preprod
      To continue enter context name: incorrecttest

      Your response does not match current context! Skipping delete ...
      munirs-mbp:oneclick mahmad$ ./deleteAll.bash -n onap
      You are about to delete deployment from: preprod
      To continue enter context name: preprod

                        • Cleaning up ONAP:

            mahmad mahmad
            mahmad mahmad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: