this repo has no description
1resource "kubectl_manifest" "cert_manager" {
2 server_side_apply = true
3 yaml_body = yamlencode({
4 apiVersion = "argoproj.io/v1alpha1"
5 kind = "Application"
6 metadata = {
7 name = "cert-manager"
8 namespace = helm_release.argocd.namespace
9 finalizers = ["resources-finalizer.argocd.argoproj.io"]
10 labels = local.common_labels
11 }
12 spec = {
13 project = "default"
14 destination = {
15 name = "in-cluster"
16 namespace = "cert-manager"
17 }
18 syncPolicy = local.sync_policy
19 source = {
20 repoURL = "https://charts.jetstack.io"
21 chart = "cert-manager"
22 targetRevision = "1.18.2"
23 helm = {
24 valuesObject = {
25 crds = {
26 enabled = true
27 }
28 config = {
29 featureGates = {
30 # Disable the use of Exact PathType in Ingress resources, to work
31 # around a bug in ingress-nginx
32 # https://github.com/kubernetes/ingress-nginx/issues/11176
33 ACMEHTTP01IngressPathTypeExact = false
34 }
35 }
36 }
37 }
38 }
39 }
40 })
41}
42
43resource "kubectl_manifest" "trust_manager" {
44 server_side_apply = true
45 yaml_body = yamlencode({
46 apiVersion = "argoproj.io/v1alpha1"
47 kind = "Application"
48 metadata = {
49 name = "trust-manager"
50 namespace = helm_release.argocd.namespace
51 finalizers = ["resources-finalizer.argocd.argoproj.io"]
52 labels = local.common_labels
53 }
54 spec = {
55 project = "default"
56 destination = {
57 name = "in-cluster"
58 namespace = "cert-manager"
59 }
60 syncPolicy = local.sync_policy
61 source = {
62 repoURL = "https://charts.jetstack.io"
63 chart = "trust-manager"
64 targetRevision = "0.18.0"
65 }
66 }
67 })
68}