From e79c015e19982ef34dbbadb836e9f7e6f5c01e41 Mon Sep 17 00:00:00 2001 From: Mikael Saarinen Date: Wed, 26 Jan 2022 11:29:00 +0200 Subject: [PATCH] Fix cert_manager depencies Signed-off-by: Mikael Saarinen --- 02_deployHono/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/02_deployHono/main.tf b/02_deployHono/main.tf index 86fe7f9..64f1abd 100644 --- a/02_deployHono/main.tf +++ b/02_deployHono/main.tf @@ -87,6 +87,7 @@ module "jaeger" { source = "./modules/jaeger" } module "cert_manager" { + depends_on = [module.ambassador, module.hono] source = "./modules/cert_manager" } @@ -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) @@ -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)