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: terraform module validation #4509

Merged
merged 5 commits into from Jun 1, 2023
Merged

Conversation

Walther
Copy link
Contributor

@Walther Walther commented Jun 1, 2023

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4508

Special notes for your reviewer:

We should make a release after merging this PR, as currently terraform module configurations will not work on Bonsai.
We should clean up these tests a bit some other day in a separate PR.

@Walther Walther force-pushed the terraform-module-validation-fixes branch from 9aa76ff to f31d9eb Compare June 1, 2023 16:46
@@ -727,4 +727,442 @@ for (const terraformVersion of ["0.13.3", defaultTerraformVersion]) {
})
})
})

// TODO: re-enable after https://github.com/garden-io/garden/issues/4467 has been fixed
describe.skip("Terraform module type", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a rather ugly copy of the test suite for Terraform action type with a couple of changes (e.g. using garden["moduleConfigs"]["tf"] instead of garden["actionConfigs"]["Deploy"]["tf"]).

These tests could be cleaned up a lot, but we should leave that for later.
These tests pass locally, and they make sure our module-to-action conversion logic works

@Walther Walther force-pushed the terraform-module-validation-fixes branch from 38f5afc to 868a810 Compare June 1, 2023 17:31
@Walther Walther marked this pull request as ready for review June 1, 2023 17:31
@Walther Walther requested a review from a team June 1, 2023 17:47
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

@Walther Walther merged commit 15483b2 into main Jun 1, 2023
20 of 34 checks passed
@Walther Walther deleted the terraform-module-validation-fixes branch June 1, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.13: [Bug]: Terraform module with dependencies does not validate
2 participants