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

chore: improve tofu handling #975

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Conversation

pivotal-marcela-campo
Copy link
Member

Checklist:

  • Have you added or updated tests to validate the changed functionality?
  • Have you added Release Notes in the docs repositories?
  • Have you followed the Conventional Commits specification?

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/187271426

The labels on this github issue will be updated when the story is started.

@pivotal-marcela-campo pivotal-marcela-campo marked this pull request as ready for review March 19, 2024 18:20
if currentTfVersion.LessThan(version.Must(version.NewVersion("0.12.0"))) {
return errors.New("upgrade only supported for Terraform versions >= 0.12.0")
if currentTfVersion.LessThan(version.Must(version.NewVersion("1.5.0"))) {
return errors.New("upgrade only supported for Terraform versions >= 1.5.0")
Copy link
Member

Choose a reason for hiding this comment

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

Should the word Terraform still be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

strictly speaking, people will need to migrate from terraform 1.5.7 to opentofu 1.6.x. There's no opentofu version 1.5.x so I believe in this case, terraform is fine. I could change by Terraform/OpenTofu

pkg/providers/tf/workspace/workspace_test.go Show resolved Hide resolved
@pivotal-marcela-campo pivotal-marcela-campo merged commit defde29 into main Mar 20, 2024
8 checks passed
@pivotal-marcela-campo pivotal-marcela-campo deleted the improve-tofu-handling branch March 20, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants