From aca9875f60db2d1f6ecf586e69139921de845343 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Tue, 17 Aug 2021 21:55:32 +0200
Subject: [PATCH] Ignore error msg if namespace exists

---
 docs/installation/install_oas.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/installation/install_oas.rst b/docs/installation/install_oas.rst
index 4747a7f66..f0ad750d0 100644
--- a/docs/installation/install_oas.rst
+++ b/docs/installation/install_oas.rst
@@ -150,7 +150,7 @@ directory **on your provisioning machine**. Don't forget to replace
    export KUBECONFIG=$CLUSTER_DIR/kube_config_cluster.yml
 
    # Ensure flux-system namespace is created
-   kubectl get namespace flux-system || kubectl create namespace flux-system
+   kubectl get namespace flux-system 2>/dev/null || kubectl create namespace flux-system
 
    # This inserts the configuration from .flux.env into your cluster as a "secret"
    kubectl apply -k $CLUSTER_DIR
-- 
GitLab