Plan failed when flux2 is enabled
Closed this issue · 0 comments
rguichard commented
plan failed when flux2 is enabled. IMO, it's link to hashicorp/terraform#22405. It's merged and closed but I still encounter it.
Error: Inconsistent conditional result types
on .terraform/modules/addons/flux2.tf line 22, in locals:
22: apply = local.flux2["enabled"] ? [for v in data.kubectl_file_documents.apply[0].documents : {
23: data : yamldecode(v)
24: content : v
25: }
26: ] : []
|----------------
| data.kubectl_file_documents.apply[0].documents is list of string with 24 elements
| local.flux2["enabled"] is true
The true and false result expressions must have consistent types. The given
expressions are tuple and tuple, respectively.