Skip to content

Commit

Permalink
Set runner.InitRequest.Upgrade to false by default
Browse files Browse the repository at this point in the history
Prevents terraform runner to upgrade all providers, and will respect the definition of the terraform lock file if any. If required, this could be parametrized, so that the user can decide whether to enable upgrade option or not.
  • Loading branch information
hmonsalv authored Oct 11, 2023
1 parent b5af76d commit c84d25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/tf_controller_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ terraform {

initRequest := &runner.InitRequest{
TfInstance: tfInstance,
Upgrade: true,
Upgrade: false,
ForceCopy: true,
// Terraform: terraformBytes,
}
Expand Down

0 comments on commit c84d25b

Please sign in to comment.