Skip to content

Commit

Permalink
Fixed syntax mistake with iterators on deployment volumes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Mar 27, 2024
1 parent ec66424 commit f1d24ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.6.12 (Mar 27, 2024)
* Fixed syntax mistake with iterators on deployment volumes.

# 0.6.11 (Mar 27, 2024)
* Fixed `claim_name` to be required.

Expand Down
10 changes: 5 additions & 5 deletions deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ resource "kubernetes_deployment_v1" "this" {
iterator = pvc

content {
claim_name = pvc.claim_name
read_only = lookup(pvc, "read_only", null)
claim_name = pvc.value.claim_name
read_only = lookup(pvc.value, "read_only", null)
}
}

dynamic "host_path" {
for_each = volume.value.host_path == null ? [] : [1]
iterator = pvc
iterator = hp

content {
type = pvc.type
path = pvc.path
type = hp.value.type
path = hp.value.path
}
}
}
Expand Down

0 comments on commit f1d24ad

Please sign in to comment.