From c84d25b09c61de1733c7528c8f4e97dbd66e0434 Mon Sep 17 00:00:00 2001 From: hmonsalv Date: Wed, 11 Oct 2023 10:44:44 +0200 Subject: [PATCH] Set runner.InitRequest.Upgrade to false by default 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. --- controllers/tf_controller_backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/tf_controller_backend.go b/controllers/tf_controller_backend.go index 3e26116a..d8de5df2 100644 --- a/controllers/tf_controller_backend.go +++ b/controllers/tf_controller_backend.go @@ -344,7 +344,7 @@ terraform { initRequest := &runner.InitRequest{ TfInstance: tfInstance, - Upgrade: true, + Upgrade: false, ForceCopy: true, // Terraform: terraformBytes, }