From ded3124f627e0aca9ca95fee5d5a2ebe0b1a0449 Mon Sep 17 00:00:00 2001 From: nikchern Date: Tue, 12 Apr 2022 21:01:04 -0700 Subject: [PATCH] BET-4850: Support custom timeouts for cluster creation in modules. (#18) * BET-4850: Support custom timeouts for cluster creation in modules. --- spectro-cluster-edge-vsphere.tf | 5 +++++ spectro-cluster-edge.tf | 5 +++++ spectro-cluster-eks.tf | 5 +++++ spectro-cluster-libvirt.tf | 5 +++++ spectro-cluster-tke.tf | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/spectro-cluster-edge-vsphere.tf b/spectro-cluster-edge-vsphere.tf index c274d61..6e651d2 100644 --- a/spectro-cluster-edge-vsphere.tf +++ b/spectro-cluster-edge-vsphere.tf @@ -179,4 +179,9 @@ resource "spectrocloud_cluster_edge_vsphere" "this" { conformance_scan_schedule = scan_policy.value.conformance_scan_schedule } } + + timeouts { + create = try(each.value.timeouts.create, "60m") + delete = try(each.value.timeouts.delete, "60m") + } } diff --git a/spectro-cluster-edge.tf b/spectro-cluster-edge.tf index f48429c..408332d 100644 --- a/spectro-cluster-edge.tf +++ b/spectro-cluster-edge.tf @@ -169,4 +169,9 @@ resource "spectrocloud_cluster_edge" "this" { conformance_scan_schedule = scan_policy.value.conformance_scan_schedule } } + + timeouts { + create = try(each.value.timeouts.create, "60m") + delete = try(each.value.timeouts.delete, "60m") + } } diff --git a/spectro-cluster-eks.tf b/spectro-cluster-eks.tf index 34b340c..cf6d83c 100644 --- a/spectro-cluster-eks.tf +++ b/spectro-cluster-eks.tf @@ -156,4 +156,9 @@ resource "spectrocloud_cluster_eks" "this" { conformance_scan_schedule = scan_policy.value.conformance_scan_schedule } } + + timeouts { + create = try(each.value.timeouts.create, "60m") + delete = try(each.value.timeouts.delete, "60m") + } } \ No newline at end of file diff --git a/spectro-cluster-libvirt.tf b/spectro-cluster-libvirt.tf index 39a04ce..0a3dc2a 100644 --- a/spectro-cluster-libvirt.tf +++ b/spectro-cluster-libvirt.tf @@ -191,4 +191,9 @@ resource "spectrocloud_cluster_libvirt" "this" { conformance_scan_schedule = scan_policy.value.conformance_scan_schedule } } + + timeouts { + create = try(each.value.timeouts.create, "60m") + delete = try(each.value.timeouts.delete, "60m") + } } diff --git a/spectro-cluster-tke.tf b/spectro-cluster-tke.tf index fe8cecc..966b81a 100644 --- a/spectro-cluster-tke.tf +++ b/spectro-cluster-tke.tf @@ -140,4 +140,9 @@ resource "spectrocloud_cluster_tke" "this" { conformance_scan_schedule = scan_policy.value.conformance_scan_schedule } } + + timeouts { + create = try(each.value.timeouts.create, "60m") + delete = try(each.value.timeouts.delete, "60m") + } } \ No newline at end of file