Skip to content

Commit

Permalink
remove argo
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Aug 19, 2024
1 parent 1b49f1d commit 4a919f3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions terraform/app.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# This hcl file is responsible for the configuration deployment that will be used by ArgoCD

# ApplicationSet resource for the applications that argoCD will manage
data "kubectl_file_documents" "apps" {
content = file("../manifests/argocd/apps.yaml")
}
# # ApplicationSet resource for the applications that argoCD will manage
# data "kubectl_file_documents" "apps" {
# content = file("../manifests/argocd/apps.yaml")
# }

resource "kubectl_manifest" "apps" {
# Needs to depend on argocd deployment, since we'll configure it after deployment finishes
depends_on = [kubectl_manifest.argocd]
# for_each iterates over each manifest in the namespace file
for_each = data.kubectl_file_documents.apps.manifests
# Applies the content of each manifest to the Kubernetes cluster
yaml_body = each.value
# Forces the namespace to be set to argocd, ensuring that all resources are created in the correct namespace
override_namespace = "argocd"
}
# resource "kubectl_manifest" "apps" {
# # Needs to depend on argocd deployment, since we'll configure it after deployment finishes
# depends_on = [kubectl_manifest.argocd]
# # for_each iterates over each manifest in the namespace file
# for_each = data.kubectl_file_documents.apps.manifests
# # Applies the content of each manifest to the Kubernetes cluster
# yaml_body = each.value
# # Forces the namespace to be set to argocd, ensuring that all resources are created in the correct namespace
# override_namespace = "argocd"
# }

# MANAGING SECRETS USING External Secrets
# # External-Secrets operator for the retrieval of secrets
Expand Down

0 comments on commit 4a919f3

Please sign in to comment.