#!/usr/bin/env bash set -xeuo pipefail # Put PVC in terminating kubectl delete pvc -n warehouse-system --all --wait=false # Delete pods so PVC can be removed kubectl delete pods -n warehouse-system --all --wait # Ensure PVC deleted kubectl delete pvc -n warehouse-system --all --wait # Re-apply PVC so cache is cleared and Lumper can update itself kubectl apply -n warehouse-system -f - <