From 4cca69a023af783aa982cd6a4b02bf0fd99ac991 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 28 Oct 2020 15:02:09 +0000 Subject: [PATCH] updated kubernetes_foreach_namespace.sh --- kubernetes_foreach_namespace.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes_foreach_namespace.sh b/kubernetes_foreach_namespace.sh index 4206c780..cb5120d3 100755 --- a/kubernetes_foreach_namespace.sh +++ b/kubernetes_foreach_namespace.sh @@ -29,7 +29,7 @@ Can chain with kubernetes_foreach_context.sh DANGER: This is powerful so use carefully! -DANGER: Changes the kubectl context's default namespace - due to the way Kubectl works - this must not be run concurrently with any other kubectl based operations in any other scripts / terraform etc otherwise the Kubernetes changes may be sent to the wrong namespace! +DANGER: Changes the kubectl context's default namespace - due to the way Kubectl works - this must not be run concurrently with any other kubectl based operations in any other scripts / terraform etc otherwise the Kubernetes changes may be sent to the wrong namespace! It's actually safer to script an operation to iterate on namespaces and instead of changing the default namespace in each iteration, pass the -n switch. See kubectl_rollout_history_all_deployments.sh for an example of this. Requires 'kubectl' to be configured and available in \$PATH