Skip to content

Commit

Permalink
feat: add keda
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Sep 16, 2024
1 parent cfeb4d4 commit 282a0b7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion application_set.tf
Original file line number Diff line number Diff line change
Expand Up @@ -589,4 +589,51 @@ resource "argocd_application_set" "promtail" {
}

}
}
}

resource "argocd_application_set" "keda" {
metadata {
name = "keda"
}
spec {
go_template = true
generator {
clusters {
selector {
match_labels = {
"argocd.argoproj.io/secret-type" = "cluster"
}
}
}
}
template {
metadata {
name = "keda-{{.name}}"
labels = {
cluster = "{{.name}}"
env = "{{.metadata.labels.env}}"
}
}

spec {
project = argocd_project.guardian.metadata[0].name

source {
repo_url = var.repo_url
target_revision = "HEAD"
path = "keda/base"
kustomize {
common_annotations = {
"github.com/url" = var.repo_url
}
}
}

destination {
name = "{{.name}}"
namespace = "guardian"
}
}
}
}
}
File renamed without changes.

0 comments on commit 282a0b7

Please sign in to comment.