File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,37 @@ resource "argocd_application" "app-of-apps" {
3232 }
3333
3434}
35+
36+
37+ resource "argocd_application" "app-of-components" {
38+ metadata {
39+ name = " app-of-components"
40+ namespace = " argocd"
41+ labels = {
42+ cluster = " in-cluster"
43+ }
44+ }
45+
46+ spec {
47+ destination {
48+ name = " in-cluster"
49+ }
50+
51+ source {
52+ repo_url = var. source_repo_url
53+ path = " components"
54+ directory {
55+ recurse = var. source_directory_recursive
56+ }
57+ }
58+
59+ # sync_policy {
60+ # automated {
61+ # prune = true
62+ # self_heal = true
63+
64+ # }
65+ # }
66+ }
67+
68+ }
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ module "eks" {
7777
7878 }
7979 }
80-
81-
8280 # Allow kubectl access via AWS SSO credentials
8381 access_entries = {
8482 # pipeline access to k8s
You can’t perform that action at this time.
0 commit comments