You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the string JSON in spec.forProvider.varFiles[*].format does not work.
The provider does not properly interpret the string and writes the configuration file into the provider as /tf/<uuid>/crossplane-provider-terraform-0.tfvars when it should be named /tf/<uuid>/crossplane-provider-terraform-0.tfvars.json this causes
terraform to break, because it tries to ingest the JSON formatted variable file as Terraform HCL.
After debugging the provider locally it's likely due to a faulty comparison of memory addresses instead of a regular string comparison. In the following code:
@haraldsk I have a requirement for providing an encrypted sops json file to a terraform input via a configmap. Would be nice to have it in the next version. So that i can test it.
Setting the string
JSON
inspec.forProvider.varFiles[*].format
does not work.The provider does not properly interpret the string and writes the configuration file into the provider as
/tf/<uuid>/crossplane-provider-terraform-0.tfvars
when it should be named/tf/<uuid>/crossplane-provider-terraform-0.tfvars.json
this causesterraform to break, because it tries to ingest the JSON formatted variable file as Terraform HCL.
Steps to reproduce:
After debugging the provider locally it's likely due to a faulty comparison of memory addresses instead of a regular string comparison. In the following code:
provider-terraform/internal/controller/workspace/workspace.go
Line 398 in 40eae20
I have tested the patch below and it solved the issue for me:
I can submit this as a PR if needed.
The text was updated successfully, but these errors were encountered: