-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add support for opentofu #328
Conversation
eb00fc3
to
fa5d310
Compare
Terraform *terraform.Terraform | ||
OpenTofu *opentofu.OpenTofu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can abstract the tool used to have only one property. For Terragrunt, we only need the execution path of the tool.
I see 2 solutions:
- We add another function to the
TerraformExec
interface to obtain the execution path of the tool - We just give a string
BaseToolPath
to theTerragrunt
struct instead of a pointer to an object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the first idea, but this makes the exec patterns a little more complicated tho; check my last commit, wdyt ?
Overall very great Pull Request! 👏 |
ad3d4bf
to
b364f56
Compare
This makes it possible to use opentofu instead of terraform. It involves some CRD modifications:
spec.terraform.enabled
andspec.terragrunt.enabled
Todo: