From f47737e6b23595a2436d375f9a2fe4c34da81e15 Mon Sep 17 00:00:00 2001 From: "CORP\\bogdan.vakulyuk" Date: Thu, 3 Nov 2022 20:25:39 +0200 Subject: [PATCH] Added 'wait' and 'timeout' parameters to helm application --- main.tf | 2 ++ variables.tf | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/main.tf b/main.tf index a6079d3..26dbc47 100644 --- a/main.tf +++ b/main.tf @@ -6,6 +6,8 @@ resource "helm_release" "application" { version = var.chart_version atomic = var.atomic create_namespace = var.create_namespace + wait = var.wait + timeout = var.timeout values = [var.disable_heavyweight_metrics ? file("${path.module}/templates/metrics-disable.yaml") : ""] diff --git a/variables.tf b/variables.tf index 57d03f2..befd4bc 100644 --- a/variables.tf +++ b/variables.tf @@ -103,3 +103,16 @@ variable "additional_set" { description = "Add additional set for helm" default = [] } + +variable "wait" { + description = "Will wait until all resources are in a ready state" + type = bool + default = true +} + +variable "timeout" { + type = number + description = " Time in seconds to wait for any individual kubernetes operation" + default = 300 +} +