Skip to content

Commit ed2d8a7

Browse files
committed
add components as their own app of apps seed
1 parent e4ed608 commit ed2d8a7

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

argocd-bootstrap/main.tf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

core-env/eks-clusters/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)