Skip to content

Commit db60339

Browse files
authored
Update kubectl_path_documents example doc. (#140)
Example uses kubectl_file_documents instead of kubectl_path_documents. for_each has to be a set or a map and thus toset() is needed. This update closes #135.
1 parent 15de61b commit db60339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/data-sources/kubectl_path_documents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data "kubectl_path_documents" "docs" {
1919
}
2020
2121
resource "kubectl_manifest" "test" {
22-
for_each = data.kubectl_file_documents.docs.manifests
22+
for_each = toset(data.kubectl_path_documents.docs.documents)
2323
yaml_body = each.value
2424
}
2525
```

0 commit comments

Comments
 (0)