-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Describe the Feature
After mergin the files you need to convert to an object the string. If you are chaining the merge a double encode is needed
Use Case
data "utils_deep_merge_json" "example" {
for_each = local.some_array
input = [for s in each.value: jsonencode(s)]
}
resource "kubectl_manifest" "example" {
for_each = data.utils_deep_merge_json.example
yaml_body = templatefile(**jsondecode(each.value.output).template**", merge(
**jsondecode(each.value.output).some_object**,
{
namespace = var.ns
},
))
}
Describe Ideal Solution
Expose the merged string as an object
Metadata
Metadata
Assignees
Labels
No labels