Skip to content

Commit

Permalink
Merge pull request #10 from bogvak/master
Browse files Browse the repository at this point in the history
Added parameters 'wait' and 'timeout'
  • Loading branch information
bohdantverdyi authored Nov 4, 2022
2 parents 38cd8b9 + da31baf commit 3a1536f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ module "nginx-controller" {
| metrics_enabled | Allow exposing metrics for prometheus-operator | `bool` | `false` | no |
| disable_heavyweight_metrics | Disable some 'heavyweight' or unnecessary metrics | `bool` | `false` | no |
| additional\_set | Additional sets to Helm | <pre>list(object({<br> name = string<br> value = string<br> type = string // Optional<br> }))</pre> | `[]` | no |
| wait | Will wait until all resources are in a ready state" | `bool` | `true` | no |
| timeout | Time in seconds to wait for any individual kubernetes operation | `number` | `300` | no |

## Outputs
| Name | Description |
Expand Down
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 3a1536f

Please sign in to comment.