Skip to content

Commit

Permalink
Added 'wait' and 'timeout' parameters to helm application
Browse files Browse the repository at this point in the history
  • Loading branch information
CORP\bogdan.vakulyuk committed Nov 3, 2022
1 parent 38cd8b9 commit f47737e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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") : ""]

Expand Down
13 changes: 13 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f47737e

Please sign in to comment.