From: garciadeblas Date: Wed, 12 Jan 2022 08:58:50 +0000 (+0100) Subject: Silent output when deleting ns osm in k8s cluster X-Git-Tag: v11.0.2~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=66d2361a174d7892c9ba049e78a1c30a6bdf8ad4;p=osm%2Fdevops.git 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: I4e38cb2c727683215d8b331a4780feeec98fbe5d Signed-off-by: garciadeblas --- diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index f31889cb..d610bb68 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -236,7 +236,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 }