Skip to content

Commit

Permalink
ci: fix failed to find longhorn chart from imported repo
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Mar 4, 2024
1 parent 9f08d73 commit 48b6ac3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pipelines/utilities/rancher/terraform_install/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 48b6ac3

Please sign in to comment.