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

feat!: update terraform to version 1.6.x, relax max version constraint #12027

Merged
merged 4 commits into from
Feb 6, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Feb 6, 2024

Relates to #12009

  • Updates default Terraform version to 1.6.6
  • Relaxes maximum version constraint on installed Terraform version

This should allow both us and others to experiment more easily with newer versions of Terraform.

Marking this as a breaking change so that it's called out prominently in the release notes.

@johnstcn johnstcn changed the title [wip] feat!: update terraform to version 1.6.x, relax max version constraint feat!: update terraform to version 1.6.x, relax max version constraint Feb 6, 2024
@johnstcn johnstcn marked this pull request as ready for review February 6, 2024 15:17
@@ -26,9 +26,7 @@ RUN apk add --no-cache \
# Terraform was disabled in the edge repo due to a build issue.
# https://gitlab.alpinelinux.org/alpine/aports/-/commit/f3e263d94cfac02d594bef83790c280e045eba35
# Using wget for now. Note that busybox unzip doesn't support streaming.
#
# WARNING: Do not update to 1.6.x, as it is the first release licensed under BSL instead of MPL.
Copy link
Member

Choose a reason for hiding this comment

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

We're OK with this from a legal standpoint?

Copy link
Member Author

Choose a reason for hiding this comment

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

We're OK with this from a legal standpoint?

I'm assuming so based on @bpmct 's wording here but good to super confirm.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah we're good

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

I'm fine with this change, although it would be great to get 👍 from leadership on the legal side too.

@matifali
Copy link
Member

matifali commented Feb 6, 2024

Why not go to 1.7.x?

@johnstcn
Copy link
Member Author

johnstcn commented Feb 6, 2024

Why not go to 1.7.x?

Our current default is 1.4.6, and going to 1.6.6 is already a big jump.
I'd honestly be happier jumping to 1.5.7 but that's already out of support.

@coadler
Copy link
Member

coadler commented Feb 6, 2024

Yeah, I think jumping to 1.6.x first is the play here

@johnstcn
Copy link
Member Author

johnstcn commented Feb 6, 2024

I'm going to hold off on merging this until @bpmct gives the green light. I'd feel most comfortable doing this right after the next release so that we have a good deal of time to iron out any issues we run into on dogfood.

@matifali
Copy link
Member

matifali commented Feb 6, 2024

I am personally using 1.7.x on one of my deployments (coder Deb package and tarraform installed manually) and so far no issues. But I agree we should do it after the release.

@matifali
Copy link
Member

matifali commented Feb 6, 2024

@johnstcn I have terraform 1.7.2 and Coder seems to work even though it's outside of the max version. Shouldn't the builds fail in this case?

@johnstcn
Copy link
Member Author

johnstcn commented Feb 6, 2024

@johnstcn I have terraform 1.7.2 and Coder seems to work even though it's outside of the max version. Shouldn't the builds fail in this case?

It should download the 'known good' Terraform version in this case. You can check the build logs of a workspace for the Terraform version string.

Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

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

LGTM! Approved

@bpmct bpmct merged commit 36808f1 into main Feb 6, 2024
25 checks passed
@bpmct bpmct deleted the cj/bump-tf-version branch February 6, 2024 23:58
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants