-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.tf
55 lines (43 loc) · 1.64 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module "custom_resource_definitions" {
source = "./custom-resource-definitions"
}
module "cert_manager_cainjector" {
source = "./cert-manager-cainjector"
depends_on = [module.custom_resource_definitions]
instance_id = local.instance_id
namespace = kubernetes_namespace.namespace.metadata.0.name
image_tag = var.cainjector_image_tag
image_name = var.cainjector_image_name
image_repository = var.image_repository
image_pull_policy = var.image_pull_policy
labels = local.labels
}
module "cert_manager" {
source = "./cert-manager"
depends_on = [module.custom_resource_definitions]
instance_id = local.instance_id
namespace = kubernetes_namespace.namespace.metadata.0.name
image_tag = var.manager_image_tag
image_name = var.manager_image_name
image_repository = var.image_repository
image_pull_policy = var.image_pull_policy
labels = local.labels
}
module "cert_manager_webhook" {
source = "./cert-manager-webhook"
depends_on = [module.custom_resource_definitions]
instance_id = local.instance_id
namespace = kubernetes_namespace.namespace.metadata.0.name
image_tag = var.webhook_image_tag
image_name = var.webhook_image_name
image_repository = var.image_repository
image_pull_policy = var.image_pull_policy
labels = local.labels
}
module "cert_manager_issuers" {
source = "./cert-manager-issuers"
depends_on = [module.custom_resource_definitions]
namespace = kubernetes_namespace.namespace.metadata.0.name
letsencrypt = var.certificate_issuers.letsencrypt
# Others will go here...
}