From 48b6ac3107a376dbe201360465a7cfe7360cf7a4 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Mon, 4 Mar 2024 11:10:49 +0800 Subject: [PATCH] ci: fix failed to find longhorn chart from imported repo Signed-off-by: Yang Chiu --- .../utilities/rancher/terraform_install/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pipelines/utilities/rancher/terraform_install/main.tf b/pipelines/utilities/rancher/terraform_install/main.tf index 7898b7967a..42c86fa400 100644 --- a/pipelines/utilities/rancher/terraform_install/main.tf +++ b/pipelines/utilities/rancher/terraform_install/main.tf @@ -21,7 +21,19 @@ resource "rancher2_catalog_v2" "longhorn_repo" { git_branch = var.rancher_chart_git_branch } +resource "time_sleep" "wait_60_seconds" { + depends_on = [ + rancher2_catalog_v2.longhorn_repo + ] + + create_duration = "60s" +} + resource "rancher2_app_v2" "longhorn_app" { + depends_on = [ + time_sleep.wait_60_seconds + ] + cluster_id = "local" name = "longhorn-app" namespace = "longhorn-system"