Skip to content

Commit

Permalink
Fix cert_manager depencies
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Saarinen <[email protected]>
  • Loading branch information
msrn committed Jan 26, 2022
1 parent 5a6f8b1 commit e79c015
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 02_deployHono/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ module "jaeger" {
source = "./modules/jaeger"
}
module "cert_manager" {
depends_on = [module.ambassador, module.hono]
source = "./modules/cert_manager"
}

Expand All @@ -105,7 +106,7 @@ data "kubectl_path_documents" "ambassador_mappings" {
}

resource "kubectl_manifest" "ambassador_manifest" {
depends_on = [module.hono, module.ambassador]
depends_on = [module.hono, module.ambassador, module.cert_manager]
wait = true
count = length(data.kubectl_path_documents.ambassador_mappings.documents)
yaml_body = element(data.kubectl_path_documents.ambassador_mappings.documents, count.index)
Expand All @@ -120,7 +121,7 @@ data "kubectl_path_documents" "tls_mappings" {
}

resource "kubectl_manifest" "tls_manifest" {
depends_on = [module.hono, module.ambassador]
depends_on = [module.hono, module.ambassador, module.cert_manager]
wait = true
count = length(data.kubectl_path_documents.tls_mappings.documents)
yaml_body = element(data.kubectl_path_documents.tls_mappings.documents, count.index)
Expand Down

0 comments on commit e79c015

Please sign in to comment.