Bash scripting to ensure Kubernetes resources are deleted in synchronization

Sometimes we need to ensure that resources in Kubernetes are fully deleted before we setup other resources. In Kubernetes the timing and the synchronization can be very import and relevant. In that blog post we see a function of a bash script, that exactly does that job for namespaces. We are using a “for loop” combined with a nested “while loops” and other functionalities in bash to address that topic.