Parcourir la source

auto create gogs namespace

Josh Bicking il y a 15 heures
Parent
commit
2f327db680
2 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 0
      argocd/applications.yaml
  2. 0 5
      argocd/gogs/gogs.yaml

+ 4 - 0
argocd/applications.yaml

@@ -201,6 +201,8 @@ spec:
     repoURL: https://gogs.jibby.org/jhb2345/server
     targetRevision: HEAD
   syncPolicy:
+    syncOptions:
+      - CreateNamespace=true
     automated:
       enabled: true
 ---
@@ -219,6 +221,8 @@ spec:
     repoURL: https://gogs.jibby.org/jhb2345/server
     targetRevision: HEAD
   syncPolicy:
+    syncOptions:
+      - CreateNamespace=true
     automated:
       enabled: true
 ---

+ 0 - 5
argocd/gogs/gogs.yaml

@@ -1,9 +1,4 @@
 ---
-apiVersion: v1
-kind: Namespace
-metadata:
-    name: gogs
----
 apiVersion: apps/v1
 kind: Deployment
 metadata: