-#To check the pods which is not running
-if kubectl get pods | grep -c -e STATUS -e Running > 0; then
-PODS_NOT_RUNNING=$(kubectl get pods --field-selector=status.phase!=Running)
+sleep 60
+
+echo "Kubectl deployments........................................."
+kubectl get deployments
+
+echo "Kubectl pods in default namespace............................"
+kubectl get pods
+
+echo "-------------------------------------------------------------------"
+echo "-------------------------------------------------------------------"
+
+sleep 60
+
+echo "Checking for Pods not in running status in default namespace"
+
+if [[ $RUNNING_PODS_COUNT > 0 ]]; then
+ kubectl get pods --field-selector=status.phase!=Running
+else
+ echo "No Pods are presently running"