Skip to content

Commit

Permalink
fix: count instead foreach
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
  • Loading branch information
shanduur committed Dec 4, 2024
1 parent 10b9cea commit 172a5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/linode/modules/lke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ provider "flux" {
}

resource "flux_bootstrap_git" "flux" {
for_each = var.flux ? [1] : []
depends_on = [linode_lke_cluster.lke]
count = var.flux ? 1 : 0

path = "clusters/${var.cluster_name}"
}
Expand All @@ -63,7 +63,7 @@ provider "kubernetes" {

resource "kubernetes_secret" "bitwarden" {
depends_on = [linode_lke_cluster.lke]
for_each = var.flux ? [1] : []
count = var.flux ? 1 : 0

metadata {
name = "bitwarden"
Expand Down

0 comments on commit 172a5e6

Please sign in to comment.