Skip to content

Commit

Permalink
changed update_trigger to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
sachincool committed Oct 28, 2024
1 parent 1cb4c48 commit 9b7fefd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
data "aws_eks_cluster_auth" "cluster" {

Check warning on line 1 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (ubuntu-latest)

Missing version constraint for provider "aws" in `required_providers`

Check warning on line 1 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (macos-latest)

Missing version constraint for provider "aws" in `required_providers`

Check warning on line 1 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (windows-latest)

Missing version constraint for provider "aws" in `required_providers`
name = var.cluster_name
}

resource "null_resource" "helm_install" {

Check warning on line 5 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (ubuntu-latest)

Missing version constraint for provider "null" in `required_providers`

Check warning on line 5 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (macos-latest)

Missing version constraint for provider "null" in `required_providers`

Check warning on line 5 in main.tf

View workflow job for this annotation

GitHub Actions / tflint (windows-latest)

Missing version constraint for provider "null" in `required_providers`
triggers = {
chart_name = var.chart_name
chart_version = var.chart_version
release_name = var.release_name
namespace = var.namespace
update_trigger = var.trigger_helm_update != null ? var.trigger_helm_update : "initial"
update_trigger = var.trigger_helm_update != null ? timestamp() : "initial"
}

provisioner "local-exec" {
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ variable "set_values" {
}
variable "trigger_helm_update" {
description = "Set this to any value to trigger a Helm chart update"
type = string
default = null
type = bool
default = false
}

0 comments on commit 9b7fefd

Please sign in to comment.