How can I get the names of all namespaces containing the word "nginx" and store those names in an array
Basically I want to automate this task where I have some namespaces in Kubernetes I need to delete and others that I want to leave alone. These namespaces contain the word nginx. So I was thinking in order to do…