add application set config for argocd
This commit is contained in:
1 parent
fd581e03c7
commit
2b07fdeec7
1 file changed
+39
@@ -0,0 +1,39 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
namespace: argocd
|
||||
data:
|
||||
kustomize.buildOptions: "--enable-helm"
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: cluster
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
goTemplateOptions: ["missingkey=error"]
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git
|
||||
revision: HEAD
|
||||
directories:
|
||||
- path: "*"
|
||||
template:
|
||||
metadata:
|
||||
name: "{{ index .path.segments 0 }}"
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git
|
||||
targetRevision: HEAD
|
||||
path: "{{ .path.path }}"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: default
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
|
||||
Reference in new issue
Block a user