how to know namespace is present or not in kubernetes shell script
#!/bin/bashnamespaceStatus=$(kubectl get ns nightlybuild-test -o json | jq .status.phase -r)if[$namespaceStatus=="Active"]thenecho"namespace is present"elseecho"namespace is not present"