diff --git a/README.md b/README.md index 4d39dea..8ac6615 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| +| [always\_update](#input\_always\_update) | Set this to true value trigger a Helm chart update | `bool` | `false` | no | | [chart\_name](#input\_chart\_name) | Name of the chart | `string` | n/a | yes | | [chart\_version](#input\_chart\_version) | Version of the chart | `string` | n/a | yes | | [create\_namespace](#input\_create\_namespace) | Create the namespace if it does not exist. Defaults to false | `bool` | `false` | no | @@ -91,7 +92,6 @@ No modules. | [repo\_name](#input\_repo\_name) | Name of the Helm repository | `string` | n/a | yes | | [repo\_url](#input\_repo\_url) | URL of the Helm repository | `string` | n/a | yes | | [set\_values](#input\_set\_values) | A map of values to pass to the Helm chart | `any` | `{}` | no | -| [trigger\_helm\_update](#input\_trigger\_helm\_update) | Set this to true value trigger a Helm chart update | `bool` | `false` | no | ## Outputs diff --git a/main.tf b/main.tf index 1c1d7ac..e5a7015 100644 --- a/main.tf +++ b/main.tf @@ -14,11 +14,11 @@ locals { # Main resource for Helm installation resource "null_resource" "helm_install" { triggers = { - chart_name = var.chart_name - chart_version = var.chart_version - release_name = var.release_name - namespace = var.namespace - trigger_helm_update = var.trigger_helm_update != false ? timestamp() : "initial" + chart_name = var.chart_name + chart_version = var.chart_version + release_name = var.release_name + namespace = var.namespace + always_update = var.always_update != false ? timestamp() : "initial" } provisioner "local-exec" { diff --git a/variables.tf b/variables.tf index 3204142..606edf4 100644 --- a/variables.tf +++ b/variables.tf @@ -40,7 +40,7 @@ variable "set_values" { default = {} } -variable "trigger_helm_update" { +variable "always_update" { description = "Set this to true value trigger a Helm chart update" type = bool default = false