upbound / provider-terraform

A @crossplane provider for Terraform
Apache License 2.0
124 stars 55 forks source link

Ability to override terraform version per Workspace with environment variable #254

Open ytsarev opened 3 months ago

ytsarev commented 3 months ago

Description of your changes

Fixes #84

I have:

How has this code been tested

Running custom provider image with this change and invoking several workspace examples

k get workspaces.tf.upbound.io
NAME                           SYNCED   READY   AGE
sample-inline-with-env         True     True    26m
sample-inline-own-tf-version   True     True    19m

Checked the associated contents of /.tenv directory and custom terraform cli invocation in the process list - it worked as expected.

bdwyertech commented 3 months ago

Hey this looks really cool, thanks for the shout out @ytsarev

ytsarev commented 3 months ago

/test-examples="examples/workspace-inline-aws.yaml"

turkenf commented 2 months ago

/test-examples="examples/workspace-inline-aws.yaml"

FYI: This test comment was just left to make sure pipelines work.