TritonDataCenter / triton-kubernetes

Kubernetes on Triton
Mozilla Public License 2.0
183 stars 44 forks source link

The -module option is no longer supported since Terraform 0.12 #161

Open nonepassby opened 4 years ago

nonepassby commented 4 years ago

after install manager on triton. get manager failed. triton-kubernetes get manager the message is:

` ...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work.

If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary.

Error: Unsupported option

The -module option is no longer supported since Terraform 0.12, because now only root outputs are persisted in the state.

exit status 1 ` k8s version is v1.0.0-pre2

wkatsak commented 3 years ago

I am seeing this issue too with the latest release binary. It seems there is some disconnect between triton-kubernetes and the updated terraform.

mariuspana commented 3 years ago

I've reached this point as well. Anyone with more go (is this even a go issue) knowledge know how to handle this?

vinmazzi commented 2 years ago

The -module option has been deprecated since terraform 0.12.

To fix this issue we need to remove the -module option from the terraform output execution and make that the output is declared on the terraform module implementation.

This Pull Request fixes this issue: #169