瀏覽代碼

auto create gogs namespace

Josh Bicking 17 小時之前
父節點
當前提交
2f327db680
共有 2 個文件被更改,包括 4 次插入5 次删除
  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: