Skip to content

Commit

Permalink
feat: add cert-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Oct 24, 2023
1 parent 35da220 commit 7d561a4
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 60 deletions.
58 changes: 58 additions & 0 deletions application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,64 @@ resource "argocd_application_set" "traefik_mesh" {
ref = "values"
}

destination {
server = "{{url}}"
namespace = "default"
}
}
}
}
}

resource "argocd_application_set" "cert_manager" {
metadata {
name = "cert-manager"
}
spec {
generator {
list {
elements = [
{
cluster = argocd_cluster.dev.name
url = argocd_cluster.dev.server
},
{
cluster = argocd_cluster.prod.name
url = argocd_cluster.prod.server
}
]
}
}
template {
metadata {
name = "cert-manager-{{cluster}}"
}

spec {
source {
helm {
release_name = "cert-manager"
value_files = [
"$values/cert-manager/{{cluster}}/values.yaml"
]
}
repo_url = "https://charts.jetstack.io"
target_revision = "1.11.0"
chart = "cert-manager"
}
source {
repo_url = var.repo_url
target_revision = "HEAD"
ref = "values"
}

source {
repo_url = var.repo_url
target_revision = "HEAD"
path = "cert-manager/{{cluster}}"
kustomize {}
}

destination {
server = "{{url}}"
namespace = "default"
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions cert-manager/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- clusterissuer.yaml
21 changes: 0 additions & 21 deletions cert-manager/dev/app.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions cert-manager/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- ../base/
21 changes: 0 additions & 21 deletions cert-manager/prod/app.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions cert-manager/prod/clusterissuer.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions cert-manager/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- ../base/

0 comments on commit 7d561a4

Please sign in to comment.