Skip to content

Commit

Permalink
fix projecthelmchart deletion script
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 7, 2024
1 parent ddcc27f commit e2c751a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/e2e/scripts/delete-projecthelmchart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ source $(dirname $0)/entry

cd $(dirname $0)/../../../..

kubectl delete -f ./examples/ci-example.yaml
if [[ "${E2E_CI}" == "true" ]]; then
kubectl delete -f ./examples/ci/project-helm-chart.yaml
else
kubectl delete -f ./examples/project-helm-chart.yaml
fi
if kubectl get -n cattle-monitoring-system job/helm-delete-cattle-project-p-example-monitoring --ignore-not-found; then
if ! kubectl wait --for=condition=complete --timeout="${KUBECTL_WAIT_TIMEOUT}" -n cattle-monitoring-system job/helm-delete-cattle-project-p-example-monitoring; then
echo "ERROR: Helm Uninstall Job for Project Monitoring Stack never completed after ${KUBECTL_WAIT_TIMEOUT}"
Expand Down

0 comments on commit e2c751a

Please sign in to comment.