From d3f03e3d7bfcb1fc56c74d4e41f99db8d5cb809b Mon Sep 17 00:00:00 2001 From: Rob Kooper <kooper@illinois.edu> Date: Mon, 15 Aug 2022 17:58:13 -0500 Subject: [PATCH] allow for secrets for healthmonitor --- terraform/modules/argocd/argocd.tf | 2 +- terraform/modules/argocd/templates/argocd.yaml.tmpl | 3 +-- terraform/modules/argocd/variables.tf | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/terraform/modules/argocd/argocd.tf b/terraform/modules/argocd/argocd.tf index b1f1836..d49ed6d 100644 --- a/terraform/modules/argocd/argocd.tf +++ b/terraform/modules/argocd/argocd.tf @@ -48,7 +48,7 @@ locals { sealedsecrets_enabled = var.sealedsecrets_enabled healthmonitor_enabled = var.healthmonitor_enabled healthmonitor_nfs = var.healthmonitor_nfs - healthmonitor_notifications = var.healthmonitor_notifications + healthmonitor_secrets = var.healthmonitor_secrets }) } diff --git a/terraform/modules/argocd/templates/argocd.yaml.tmpl b/terraform/modules/argocd/templates/argocd.yaml.tmpl index d79cced..e92d210 100644 --- a/terraform/modules/argocd/templates/argocd.yaml.tmpl +++ b/terraform/modules/argocd/templates/argocd.yaml.tmpl @@ -84,8 +84,7 @@ spec: healthmonitor: enabled: ${healthmonitor_enabled} nfs: ${healthmonitor_nfs} - #notifiers: - # %%{ indent(12, healthmonitor) }% + existingSecret: ${healthmonitor_secrets} sealedsecrets: enabled: ${sealedsecrets_enabled} diff --git a/terraform/modules/argocd/variables.tf b/terraform/modules/argocd/variables.tf index 22cd935..1037e39 100644 --- a/terraform/modules/argocd/variables.tf +++ b/terraform/modules/argocd/variables.tf @@ -154,10 +154,10 @@ variable "healthmonitor_nfs" { default = true } -variable "healthmonitor_notifications" { +variable "healthmonitor_secrets" { type = string - description = "Notifications for healthmonitor" - default = "" + description = "Secrets (config/checks/notifications) for healthmonitor" + default = "config" } variable "sealedsecrets_enabled" { -- GitLab