Skip to content

Commit

Permalink
feat: Added support for managing replicaCount of 'self_managed' compo…
Browse files Browse the repository at this point in the history
…nents (#102)

Co-authored-by: Andrej Kislovskij <[email protected]>
  • Loading branch information
andrejatcastai and Andrej Kislovskij authored Jul 9, 2024
1 parent 4113424 commit a5842f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 2 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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]
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5842f0

Please sign in to comment.