Skip to content

Commit

Permalink
no run if empty (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Jun 21, 2018
1 parent 810e02e commit f1399c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/helm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ helm/toolbox/upsert:

## Delete all releases in a `NAMEPSACE` as well as the namespace
helm/delete/namespace:
@helm list --namespace $(NAMESPACE) --short | xargs helm delete --purge
@helm list --namespace $(NAMESPACE) --short | xargs -r helm delete --purge
@kubectl delete namespace $(NAMESPACE) --ignore-not-found

## Delete all failed releases in a `NAMESPACE` subject to `FILTER`
helm/delete/failed:
@helm list --namespace $(NAMESPACE) --failed --short $(FILTER) 2>/dev/null | xargs helm delete --purge
@helm list --namespace $(NAMESPACE) --failed --short $(FILTER) 2>/dev/null | xargs -r helm delete --purge

0 comments on commit f1399c0

Please sign in to comment.