[VOL-3781] Deprecating kind-voltha in favor of helm-charts

Change-Id: I1f82c70518c8bca5a44262a7ec21584d428cb434
diff --git a/README.md b/README.md
index 6a490db..0f7de08 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,10 @@
+# DEPRECATED
+
+[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
+
+`VOLTHA 2.7` was the last release that officially supported `kind-voltha` as a deployment tool.
+From now on the deployment is driven via helm charts, please refer to [voltha-helm-charts](https://github.com/opencord/voltha-helm-charts) and [voltha-docs](docs.voltha.org) for more information.
+
 #  VOLTHA DEPLOYMENT TOOL
 Thie repository describes how to the the `voltha` script to install a
 VOLTHA deployment. `voltha` can be used to deploy an instance into an existing
diff --git a/releases/voltha-2.2 b/releases/voltha-2.2
index b6589b5..d76e961 100644
--- a/releases/voltha-2.2
+++ b/releases/voltha-2.2
@@ -7,5 +7,6 @@
 export VOLTHA_ADAPTER_OPEN_OLT_CHART_VERSION=2.2.0
 export VOLTHA_ADAPTER_OPEN_ONU_CHART_VERSION=2.2.0
 export ONOS_CHART_VERSION=1.1.4
+export IGNORE_WARNINGS=y
 
-export EXTRA_HELM_FLAGS="--set use_openonu_adapter_go=false "
\ No newline at end of file
+export EXTRA_HELM_FLAGS="--set use_openonu_adapter_go=false "
diff --git a/releases/voltha-2.3 b/releases/voltha-2.3
index 8926dbf..b8b6830 100644
--- a/releases/voltha-2.3
+++ b/releases/voltha-2.3
@@ -12,6 +12,7 @@
 export WITH_ONOS=legacy
 export KIND_VERSION=v.5.1
 export HELM_VERSION=2.16.9
+export IGNORE_WARNINGS=y
 
 # defaults.image_tag=null will use the image tags in the Helm charts rather than
 # kind-voltha's default which is 'master'.
diff --git a/releases/voltha-2.3.0-rc1 b/releases/voltha-2.3.0-rc1
index d892ab6..8fc4312 100644
--- a/releases/voltha-2.3.0-rc1
+++ b/releases/voltha-2.3.0-rc1
@@ -7,5 +7,6 @@
 export VOLTHA_ADAPTER_OPEN_OLT_CHART_VERSION=2.2.2
 export VOLTHA_ADAPTER_OPEN_ONU_CHART_VERSION=2.2.2
 export ONOS_CHART_VERSION=1.1.4
+export IGNORE_WARNINGS=y
 
 export EXTRA_HELM_FLAGS="--set use_openonu_adapter_go=false "
diff --git a/releases/voltha-2.4 b/releases/voltha-2.4
index ceab091..41dfbb1 100644
--- a/releases/voltha-2.4
+++ b/releases/voltha-2.4
@@ -13,6 +13,7 @@
 export WITH_ONOS=classic
 export HELM_VERSION=v3.2.4
 export KIND_VERSION=v0.8.1
+export IGNORE_WARNINGS=y
 
 # defaults.image_tag=null will use the image tags in the Helm charts rather than
 # kind-voltha's default which is 'master'.
diff --git a/releases/voltha-2.5 b/releases/voltha-2.5
index 9469910..83632f7 100644
--- a/releases/voltha-2.5
+++ b/releases/voltha-2.5
@@ -13,6 +13,7 @@
 export WITH_ONOS=classic
 export HELM_VERSION=v3.2.4
 export KIND_VERSION=v0.8.1
+export IGNORE_WARNINGS=y
 
 # lock bbsim-sadis server to Ciena version
 export BBSIM_SADIS_SERVER_CHART=bbsim-sadis/bbsim-sadis-server
diff --git a/releases/voltha-2.6 b/releases/voltha-2.6
index d5c43aa..1906e0c 100644
--- a/releases/voltha-2.6
+++ b/releases/voltha-2.6
@@ -14,6 +14,7 @@
 export WITH_ONOS=classic
 export HELM_VERSION=v3.2.4
 export KIND_VERSION=v0.8.1
+export IGNORE_WARNINGS=y
 
 # defaults.image_tag=null will use the image tags in the Helm charts rather than
 # kind-voltha's default which is 'master'.
diff --git a/releases/voltha-2.7 b/releases/voltha-2.7
index dbf119a..fcfde86 100644
--- a/releases/voltha-2.7
+++ b/releases/voltha-2.7
@@ -15,6 +15,7 @@
 export HELM_VERSION=v3.2.4
 export KIND_VERSION=v0.8.1
 export ETCD_CHART_VERSION=5.6.2
+export IGNORE_WARNINGS=y
 
 # global.image_tag=null will use the image tags in the Helm charts rather than
 # kind-voltha's default which is 'master'.
diff --git a/voltha b/voltha
index 6301d92..5efb0fb 100755
--- a/voltha
+++ b/voltha
@@ -66,7 +66,7 @@
 fi
 
 NAME=${NAME:-minimal}
-
+IGNORE_WARNINGS=${IGNORE_WARNINGS:-no}
 ENABLE_ONOS_EXTRANEOUS_RULES=${ENABLE_ONOS_EXTRANEOUS_RULES:-no}
 INFRA_NS=${INFRA_NS:-default}
 VOLTHA_NS=${VOLTHA_NS:-voltha}
@@ -338,6 +338,7 @@
 }
 
 ALL_YES_NO="\
+    IGNORE_WARNINGS \
     ENABLE_ONOS_EXTRANEOUS_RULES \
     WITH_TIMINGS \
     WITH_BBSIM \
@@ -461,6 +462,19 @@
     eval "$VAR"="$(normalize_yes_no "$VAR")"
 done
 
+if [ "$IGNORE_WARNINGS" == "no" ]; then
+  echo -e "${RED}${BOLD}\nAfter the VOLTHA 2.7 release 'kind-voltha' is deprecated and unsupported in favor of helm-charts driven installation.${NORMAL}"
+  echo -e "${RED}${BOLD}To know more about the supported installation procedure please refer to https://github.com/opencord/voltha-helm-charts\n${NORMAL}"
+  while true; do
+      read -r -p "Do you wish to continue at your own risk? (y/n)" yn
+      case $yn in
+          [Yy]* ) break;;
+          [Nn]* ) exit;;
+          * ) echo "Please answer yes or no.";;
+      esac
+  done
+fi
+
 # check number (range) of bbsim, max bbsim must not exceed 10 instances!
 # note: instances will be numbered from 0 to 9
 if [ "$1" == "up" ]; then