#!/bin/bash

helm delete --purge "${RELEASE_NAME}"

# SENT NOTIFICATION
EXIT_STATUS=$?

echo -e "\nSend Notification..."

if [ $EXIT_STATUS -ne 0 ]; then
    scripts/notify-slack-remove-deploy.sh ${EXIT_STATUS}
else
    kubectl get all -n ${NAMESPACE}
    scripts/notify-slack-remove-deploy.sh ${EXIT_STATUS}
fi

exit $EXIT_STATUS
