Skip to content

Commit 63cc978

Browse files
committed
refactor(argocd): comment out argo-workflow application set configuration for future reference
1 parent 7cc3e0e commit 63cc978

2 files changed

Lines changed: 54 additions & 52 deletions

File tree

application_set.tf

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -507,58 +507,58 @@ resource "argocd_application_set" "etcd" {
507507
}
508508
}
509509

510-
resource "argocd_application_set" "argo-workflow" {
511-
metadata {
512-
name = "argo-workflow"
513-
}
514-
spec {
515-
generator {
516-
list {
517-
elements = [
518-
{
519-
cluster = argocd_cluster.dev.name
520-
url = argocd_cluster.dev.server
521-
},
522-
{
523-
cluster = argocd_cluster.prod.name
524-
url = argocd_cluster.prod.server
525-
}
526-
]
527-
}
528-
}
529-
template {
530-
metadata {
531-
name = "argo-workflow-{{cluster}}"
532-
}
533-
534-
spec {
535-
project = argocd_project.guardian.metadata[0].name
536-
537-
source {
538-
repo_url = var.repo_url
539-
target_revision = "HEAD"
540-
path = "argo-workflow/{{cluster}}"
541-
plugin {
542-
name = "avp-kustomize"
543-
env {
544-
name = "APP_REPO"
545-
value = "NaturalSelectionLabs/Hephaestus"
546-
}
547-
env {
548-
name = "AVP_SECRET"
549-
value = "guardian:avp-{{cluster}}"
550-
}
551-
}
552-
}
553-
554-
destination {
555-
server = "{{url}}"
556-
namespace = "guardian"
557-
}
558-
}
559-
}
560-
}
561-
}
510+
# resource "argocd_application_set" "argo-workflow" {
511+
# metadata {
512+
# name = "argo-workflow"
513+
# }
514+
# spec {
515+
# generator {
516+
# list {
517+
# elements = [
518+
# {
519+
# cluster = argocd_cluster.dev.name
520+
# url = argocd_cluster.dev.server
521+
# },
522+
# {
523+
# cluster = argocd_cluster.prod.name
524+
# url = argocd_cluster.prod.server
525+
# }
526+
# ]
527+
# }
528+
# }
529+
# template {
530+
# metadata {
531+
# name = "argo-workflow-{{cluster}}"
532+
# }
533+
534+
# spec {
535+
# project = argocd_project.guardian.metadata[0].name
536+
537+
# source {
538+
# repo_url = var.repo_url
539+
# target_revision = "HEAD"
540+
# path = "argo-workflow/{{cluster}}"
541+
# plugin {
542+
# name = "avp-kustomize"
543+
# env {
544+
# name = "APP_REPO"
545+
# value = "NaturalSelectionLabs/Hephaestus"
546+
# }
547+
# env {
548+
# name = "AVP_SECRET"
549+
# value = "guardian:avp-{{cluster}}"
550+
# }
551+
# }
552+
# }
553+
554+
# destination {
555+
# server = "{{url}}"
556+
# namespace = "guardian"
557+
# }
558+
# }
559+
# }
560+
# }
561+
# }
562562

563563
resource "argocd_application_set" "promtail" {
564564
metadata {

cluster.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ resource "argocd_cluster" "ovh" {
9292
"secret" = "avp-ovh"
9393
"provider" = "ovh"
9494
"cluster-type" = "rke2"
95+
"region" = "ca-bhs"
9596
"tenant" = "3"
9697
}
9798
}
@@ -114,6 +115,7 @@ resource "argocd_cluster" "folo" {
114115
"env" = "folo"
115116
"secret" = "avp-folo"
116117
"provider" = "alicloud"
118+
"region" = "us-east-1"
117119
"cluster-type" = "ack"
118120
}
119121
}

0 commit comments

Comments
 (0)