From b58b56f9629e734cc65a119467438a08f2d3ffc3 Mon Sep 17 00:00:00 2001 From: badra001 Date: Wed, 27 Jul 2022 07:12:51 -0400 Subject: [PATCH] add namespace --- examples/efs-persistent-volumes/efs-access-points.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/efs-persistent-volumes/efs-access-points.tf b/examples/efs-persistent-volumes/efs-access-points.tf index c083dc0..8d6e596 100644 --- a/examples/efs-persistent-volumes/efs-access-points.tf +++ b/examples/efs-persistent-volumes/efs-access-points.tf @@ -47,7 +47,7 @@ resource "kubernetes_persistent_volume" "efs_ap" { resource "kubernetes_persistent_volume_claim" "efs_ap" { for_each = { for ap in var.efs_access_points : ap.name => ap } metadata { - name = format("%v-%v-claim", var.cluster_name, each.key) + name = format("%v-%v-%v-claim", var.cluster_name, each.value.claim_namespace, each.key) namespace = format("%v-%v", var.cluster_name, each.value.claim_namespace) } wait_until_bound = false