Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(addon): add helm release install control variable #7

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading