File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,67 @@ resource "helm_release" "argo_cd" {
2121 tenant = var.tenant
2222 })
2323 ]
24+
25+ set {
26+ name = " applicationSet.enabled"
27+ value = " true"
28+ }
29+ }
30+
31+ resource "kubernetes_manifest" "git_generator_applicationset" {
32+ manifest = {
33+ apiVersion = " argoproj.io/v1alpha1"
34+ kind = " ApplicationSet"
35+ metadata = {
36+ name = " git-generator-app-set"
37+ namespace = var.namespace
38+ }
39+ spec = {
40+ generators = [
41+ {
42+ git = {
43+ repoURL = " https://github.com/PoliNetworkOrg/polinetwork-cd.git"
44+ revision = " generator"
45+ directories = [
46+ {
47+ path = " *"
48+ }
49+ ]
50+ }
51+ }
52+ ]
53+ template = {
54+ metadata = {
55+ name = " {{path.basename}}"
56+ }
57+ spec = {
58+ project = " default"
59+ source = {
60+ repoURL = " https://github.com/PoliNetworkOrg/polinetwork-cd.git"
61+ targetRevision = " generator"
62+ path = " {{path}}"
63+ }
64+ destination = {
65+ server = " https://kubernetes.default.svc"
66+ namespace = " {{path.basename}}"
67+ }
68+ syncPolicy = {
69+ automated = {
70+ prune = true
71+ selfHeal = true
72+ }
73+ syncOptions = [
74+ " CreateNamespace=true"
75+ ]
76+ }
77+ }
78+ }
79+ }
80+ }
81+
82+ depends_on = [
83+ helm_release . argo_cd
84+ ]
2485}
2586
2687resource "helm_release" "argocd_apps" {
You can’t perform that action at this time.
0 commit comments