Skip to content

Commit

Permalink
Fixed more syntax mistakes 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 f1d24ad commit a4c07e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.13 (Mar 27, 2024)
* Fixed more syntax mistakes with iterators on deployment volumes.

# 0.6.12 (Mar 27, 2024)
* Fixed syntax mistake with iterators on deployment volumes.

Expand Down
4 changes: 2 additions & 2 deletions deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "kubernetes_deployment_v1" "this" {
}

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

content {
Expand All @@ -55,7 +55,7 @@ resource "kubernetes_deployment_v1" "this" {
}

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

content {
Expand Down

0 comments on commit a4c07e2

Please sign in to comment.