Skip to content

Commit

Permalink
feat(addon): add helm release install control variable (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaygridley authored Dec 12, 2024
1 parent ecdc1b9 commit d91d2a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/addon/helm.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "helm_release" "this" {
count = var.enabled == true && var.argo_enabled == false ? 1 : 0
count = var.enabled == true && var.helm_enabled == true && var.argo_enabled == false ? 1 : 0
chart = var.helm_chart_name
create_namespace = var.helm_create_namespace
namespace = var.namespace
Expand Down
6 changes: 6 additions & 0 deletions modules/addon/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ variable "enabled" {

# ================ common variables (required) ================

variable "helm_enabled" {
type = bool
default = null
description = "Set to false to prevent installation of the module via Helm release. Defaults to `true`."
}

variable "helm_chart_name" {
type = string
default = null
Expand Down

0 comments on commit d91d2a7

Please sign in to comment.