From 7a7c4906c84f52a37eab1059376b544fd565051e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Thu, 2 May 2024 11:03:07 +0000
Subject: [PATCH] Fix deployment of ephemeral storage

---
 cesnet-central/playbooks/k8s.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cesnet-central/playbooks/k8s.yaml b/cesnet-central/playbooks/k8s.yaml
index d0e9cb8..7d1b5c4 100644
--- a/cesnet-central/playbooks/k8s.yaml
+++ b/cesnet-central/playbooks/k8s.yaml
@@ -293,6 +293,7 @@
       shell: |-
         helm status --namespace local-path-storage local-path-storage
         if [ $? -ne 0 ]; then
+            kubectl create namespace local-path-storage || :
             helm install {{ config }}
         else
             helm upgrade {{ config }}
-- 
GitLab