+NODENAME=$(kubectl get node | awk '{print $1}')
+LABELFOUND=false
+for f in $NODENAME; do
+ LABEL=$(kubectl describe node $f | grep local-storage)
+ if [ ! -z "$LABEL" ]; then
+ LABELFOUND=true
+ fi
+done
+
+if [ ! -z $OVERRIDEYAML ]; then
+ FOUND_STORAGECLASS=$(grep storageclass $OVERRIDEYAML)
+fi
+
+
+
+if ! $LABELFOUND && [ -z "$FOUND_STORAGECLASS" ]; then
+ echo "***********************************************************************************************"
+ echo "* ERROR!!!!!!!!!!!!! *"
+ echo "***********************************************************************************************"
+ echo "* Nodes label \"local-storage=enable\" is not found in any of the cluster node. *"
+ echo "* Please pick a node and label it using the following command. *"
+ echo "* kubectl label --overwrite nodes <YOUR_NODE_NAME> local-storage=enable *"
+ echo "***********************************************************************************************"
+
+ exit 1
+fi
+
+