Skip to content

Commit 5373f7d

Browse files
authored
fix: only deploy addons after workers are up (#163)
1 parent 6eb9027 commit 5373f7d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ resource "null_resource" "confirm_network_healthy" {
358358

359359

360360
resource "ibm_container_addons" "addons" {
361+
depends_on = [ibm_container_vpc_worker_pool.pool, ibm_container_vpc_worker_pool.autoscaling_pool]
362+
361363
cluster = local.cluster_id
362364
resource_group_id = var.resource_group_id
363365

@@ -368,6 +370,10 @@ resource "ibm_container_addons" "addons" {
368370
version = addons.value
369371
}
370372
}
373+
374+
timeouts {
375+
create = "40m"
376+
}
371377
}
372378

373379
resource "time_sleep" "wait_operators" {

module-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@
574574
},
575575
"pos": {
576576
"filename": "main.tf",
577-
"line": 391
577+
"line": 397
578578
}
579579
},
580580
"null_resource.confirm_network_healthy": {
@@ -613,7 +613,7 @@
613613
},
614614
"pos": {
615615
"filename": "main.tf",
616-
"line": 373
616+
"line": 379
617617
}
618618
}
619619
},

0 commit comments

Comments
 (0)