From d09f679ef5ac9fbeb7e17cfa9a2bbfbc71eda755 Mon Sep 17 00:00:00 2001 From: Rodrigue Koffi Date: Thu, 4 Aug 2022 14:39:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20cosmetics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/workloads/kube-prometheus/main.tf | 8 -- .../workloads/kube-prometheus/variables.tf | 105 ------------------ 2 files changed, 113 deletions(-) diff --git a/modules/workloads/kube-prometheus/main.tf b/modules/workloads/kube-prometheus/main.tf index 5f9a511..0e84241 100644 --- a/modules/workloads/kube-prometheus/main.tf +++ b/modules/workloads/kube-prometheus/main.tf @@ -11,10 +11,6 @@ resource "helm_release" "kube_state_metrics" { version = var.config.ksm_helm_chart_version repository = var.config.ksm_helm_repo_url - # values = [ - # var.config.ksm_helm_values - # ] - dynamic "set" { for_each = var.config.ksm_helm_settings content { @@ -33,10 +29,6 @@ resource "helm_release" "prometheus_node_exporter" { version = var.config.ne_helm_chart_version repository = var.config.ne_helm_repo_url - # values = [ - # var.config.ne_helm_values - # ] - dynamic "set" { for_each = var.config.ne_helm_settings content { diff --git a/modules/workloads/kube-prometheus/variables.tf b/modules/workloads/kube-prometheus/variables.tf index b930cb3..7e77bb2 100644 --- a/modules/workloads/kube-prometheus/variables.tf +++ b/modules/workloads/kube-prometheus/variables.tf @@ -91,108 +91,3 @@ variable "config" { } nullable = false } - -# # Kube-state-metrics Variables -# variable "enable_kube_state_metrics" { -# description = "Variable indicating whether deployment is enabled" -# type = bool -# default = true -# } - -# # Helm - -# variable "helm_create_namespace_ksm" { -# type = bool -# default = true -# description = "Create the namespace if it does not yet exist" -# } - -# variable "helm_chart_name_ksm" { -# type = string -# default = "kube-state-metrics" -# description = "Helm chart name to be installed" -# } - -# variable "helm_chart_version_ksm" { -# type = string -# default = "4.9.2" -# description = "Version of the Helm chart" -# } - -# variable "helm_release_name_ksm" { -# type = string -# default = "kube-state-metrics" -# description = "Helm release name" -# } - -# variable "helm_repo_url_ksm" { -# type = string -# default = "https://prometheus-community.github.io/helm-charts" -# description = "Helm repository" -# } - -# # K8s -# variable "k8s_namespace_ksm" { -# type = string -# default = "kube-system" -# description = "The K8s namespace in which the prometheus-node-exporter service account has been created" -# } - -# variable "settings" { -# type = map(any) -# default = {} -# description = "Additional settings which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/prometheus-node-exporter" -# } - -# variable "values" { -# type = string -# default = "" -# description = "Additional yaml encoded values which will be passed to the Helm chart." -# } - -# # Node exporter Variables - -# variable "enabled_node_exporter" { -# description = "Variable indicating whether deployment is enabled" -# type = bool -# default = true -# } - -# # Helm - -# variable "helm_create_namespace_ne" { -# type = bool -# default = true -# description = "Create the namespace if it does not yet exist" -# } - -# variable "helm_chart_name_ne" { -# type = string -# default = "prometheus-node-exporter" -# description = "Helm chart name to be installed" -# } - -# variable "helm_chart_version_ne" { -# type = string -# default = "2.0.3" -# description = "Version of the Helm chart" -# } - -# variable "helm_release_name_ne" { -# type = string -# default = "prometheus-node-exporter" -# description = "Helm release name" -# } - -# variable "helm_repo_url_ne" { -# type = string -# default = "https://prometheus-community.github.io/helm-charts" -# description = "Helm repository" -# } - -# # K8s -# variable "helm_repo_url_ne" { -# type = string -# default = "kube-system" -# description = "The K8s namespace in which the prometheus-node-exporter service account has been created" -# }