Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: run terraform validate on modules again (Cherry-pick of #20230) #20299

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

WorkerPants
Copy link
Member

Only running terraform validate on deployments is unexpected for users. See #20222 . Running terraform validate on all modules might lead to errors with Terraform, but those are predictable and understandable by users.
This MR:

  • Runs terraform validate on terraform_modules again
  • Adds the skip_terraform_validate field for terraform_modules which cannot be validated by Terraform
  • Adds some documentation for the Terraform backend

It leaves open the possibility of validating both terraform_deployments and terraform_modules. Hopefully we can work out something like the Helm backend's handling of kubeconform.

Only running `terraform validate` on deployments is unexpected for
users. See #20222 . Running
`terraform validate` on all modules might lead to errors with Terraform,
but those are predictable and understandable by users.
This MR:
- Runs `terraform validate` on `terraform_modules` again
- Adds the `skip_terraform_validate` field for `terraform_modules` which
cannot be `validate`d by Terraform
- Adds some documentation for the Terraform backend

It leaves open the possibility of validating both
`terraform_deployment`s and `terraform_module`s. Hopefully we can work
out something like the Helm backend's handling of kubeconform.

---------

Co-authored-by: Benjy Weinberger <[email protected]>
@WorkerPants WorkerPants added this to the 2.18.x milestone Dec 16, 2023
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label Dec 16, 2023
@benjyw benjyw merged commit dfc74af into 2.18.x Dec 17, 2023
24 checks passed
@benjyw benjyw deleted the cherry-pick-20230-to-2.18.x branch December 17, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants