Ver código fonte

auto create gogs namespace

Josh Bicking 15 horas atrás
pai
commit
2f327db680
2 arquivos alterados com 4 adições e 5 exclusões
  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: