about summary refs log tree commit diff
path: root/scripts/deploy-argocd
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-28 12:30:53 +0200
committermakefunstuff <[email protected]>2024-06-28 12:30:53 +0200
commit44cccb5f6b75c532aa6b097e2989d7581e78869e (patch)
treead2d4b607ce63210707d3ddc26a9c88301544bb4 /scripts/deploy-argocd
parent303262c75bd8d3ad2e166760f0518a0d8aa0591c (diff)
downloadk3s-lab-44cccb5f6b75c532aa6b097e2989d7581e78869e.tar.gz
proper refactoring
Diffstat (limited to 'scripts/deploy-argocd')
-rwxr-xr-xscripts/deploy-argocd12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/deploy-argocd b/scripts/deploy-argocd
new file mode 100755
index 0000000..2fdec58
--- /dev/null
+++ b/scripts/deploy-argocd
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+
+if kubectl get namespace argocd; then
+  echo "Namespace 'argocd' alreay exists. Doing nothing"
+else
+  echo "Creating argocd namespace"
+  kubectl create namespace argocd
+fi
+