From d49dcfe8eb763be8fb09741c84ec98ae5b1a6cab Mon Sep 17 00:00:00 2001 From: Andrej Kislovskij Date: Tue, 9 Jul 2024 15:01:07 +0300 Subject: [PATCH] feat: Added support for managing replicaCount of 'self_managed' components --- main.tf | 12 ++---------- variables.tf | 6 ++++++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/main.tf b/main.tf index 9375258..320a92b 100644 --- a/main.tf +++ b/main.tf @@ -515,11 +515,6 @@ resource "helm_release" "castai_evictor_self_managed" { version = var.evictor_version values = var.evictor_values - set { - name = "replicaCount" - value = "0" - } - set { name = "castai-evictor-ext.enabled" value = "false" @@ -563,6 +558,7 @@ resource "helm_release" "castai_pod_pinner" { wait = true version = var.pod_pinner_version + values = var.pod_pinner_values set { name = "castai.clusterID" @@ -622,6 +618,7 @@ resource "helm_release" "castai_pod_pinner_self_managed" { wait = true version = var.pod_pinner_version + values = var.pod_pinner_values set { name = "castai.clusterID" @@ -657,11 +654,6 @@ resource "helm_release" "castai_pod_pinner_self_managed" { } } - set { - name = "replicaCount" - value = "0" - } - depends_on = [helm_release.castai_agent, helm_release.castai_pod_pinner] } diff --git a/variables.tf b/variables.tf index 23e6028..5a6e93d 100644 --- a/variables.tf +++ b/variables.tf @@ -149,6 +149,12 @@ variable "evictor_ext_values" { default = [] } +variable "pod_pinner_values" { + description = "List of YAML formatted string values for agent helm chart" + type = list(string) + default = [] +} + variable "kvisor_values" { description = "List of YAML formatted string with kvisor values" type = list(string)