Skip to content

Commit 9c804dc

Browse files
committed
move kargo to its own aoa
1 parent 4f89cbe commit 9c804dc

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

argocd-bootstrap/main.tf

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "argocd_application" "app-of-components" {
4747
destination {
4848
name = "in-cluster"
4949
}
50-
project = "components"
50+
project = "default"
5151

5252
source {
5353
repo_url = var.source_repo_url
@@ -67,3 +67,39 @@ resource "argocd_application" "app-of-components" {
6767
}
6868

6969
}
70+
71+
72+
resource "argocd_application" "app-of-kargo" {
73+
metadata {
74+
name = "app-of-kargo"
75+
namespace = "argocd"
76+
labels = {
77+
cluster = "in-cluster"
78+
}
79+
}
80+
81+
spec {
82+
destination {
83+
name = "in-cluster"
84+
}
85+
project = "default"
86+
87+
source {
88+
repo_url = var.source_repo_url
89+
path = "kargo"
90+
91+
directory {
92+
recurse = false
93+
}
94+
}
95+
96+
# sync_policy {
97+
# automated {
98+
# prune = true
99+
# self_heal = true
100+
101+
# }
102+
# }
103+
}
104+
105+
}

0 commit comments

Comments
 (0)