From 91f26241c01b5862022b193741a4408f74689a9e Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 12 Jan 2022 09:58:50 +0100 Subject: [PATCH] Silent output when deleting ns osm in k8s cluster The installation of the local k8s cluster with install_kubeadm_cluster.sh raised an error message when deleting the namespace "osm". That NS is deleted as a previous step to the deployment of OSM pods, just to make sure that we start from a clean NS. In principle, the error from kubectl should appear always in clean installations. For that reason, the output of the command is redirected to /dev/null to avoid confusion for the end user. Change-Id: I65b90675194848f3968a9c192427224652e3087f Signed-off-by: garciadeblas --- installers/install_kubeadm_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index 972fef16..1672854a 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -229,7 +229,7 @@ function check_for_readiness() { #removes osm deployments and services function remove_k8s_namespace() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function - kubectl delete ns $1 + kubectl delete ns $1 2>&1 >/dev/null [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -- 2.17.1