Currently a Terraform plan/apply failure in the runner does not result in an error.
It puts the runner.terraform.padok.cloud/plan-date or runner.terraform.padok.cloud/apply-date, resulting in the controller to believe that a plan was successfully generated for this layer (or apply successfully applied).
Currently a Terraform plan/apply failure in the runner does not result in an error.
It puts the
runner.terraform.padok.cloud/plan-date
orrunner.terraform.padok.cloud/apply-date
, resulting in the controller to believe that a plan was successfully generated for this layer (or apply successfully applied).This code snippet should be adapted:
https://github.com/padok-team/burrito/blob/6f45c0b61ae2d674f37c75ff8baa76eb4fa317f7/internal/runner/runner.go#L83-L96
Also, and as stated in #27, runner should exit with a code greater than 0 when Terraform/Terragrunt fails inside the pod.