From 24766e9b5b5c8467821ddb8abcc74cf8206a78d9 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Tue, 12 Apr 2022 12:04:37 +0200 Subject: [PATCH] Fixes np migration. --- migrations/2022-04-11-apply-last-np.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/2022-04-11-apply-last-np.sh b/migrations/2022-04-11-apply-last-np.sh index c27a604..323eb4b 100755 --- a/migrations/2022-04-11-apply-last-np.sh +++ b/migrations/2022-04-11-apply-last-np.sh @@ -1,6 +1,6 @@ #!/bin/bash -eux for NS in `kubectl get ns --no-headers -o custom-columns=":metadata.name" -l libre.sh/scope=user`; do - kubctl -n ${NS} delete networkpolicies allow-from-ingress-namespace - cat "/root/domains/common/networkpolicies.yml" | envsubst '$NS' | kubectl -n ${NS} diff -f - + kubectl -n ${NS} delete networkpolicies allow-from-ingress-namespace + cat "/root/domains/common/networkpolicies.yml" | envsubst '$NS' | kubectl -n ${NS} apply -f - done -- GitLab