Skip to content

Commit

Permalink
Merge pull request #99 from castai/add-self-managed-env-var
Browse files Browse the repository at this point in the history
 Set managedByCASTAI env value when self managed components are used
  • Loading branch information
linkas45 authored Oct 29, 2024
2 parents 8a39215 + 3b4d069 commit 9a33d82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ resource "helm_release" "castai_evictor_self_managed" {
value = "false"
}

set {
name = "managedByCASTAI"
value = "false"
}

dynamic "set" {
for_each = var.castai_components_labels
content {
Expand Down Expand Up @@ -495,6 +500,11 @@ resource "helm_release" "castai_pod_pinner_self_managed" {
value = castai_gke_cluster.castai_cluster.id
}

set {
name = "managedByCASTAI"
value = "false"
}

dynamic "set" {
for_each = var.api_url != "" ? [var.api_url] : []
content {
Expand Down

0 comments on commit 9a33d82

Please sign in to comment.