diff --git a/pkg/controllers/terraform_controller.go b/pkg/controllers/terraform_controller.go index c30b4af5..1fd8a135 100644 --- a/pkg/controllers/terraform_controller.go +++ b/pkg/controllers/terraform_controller.go @@ -171,9 +171,9 @@ func newRunOptions(tf *tfv1alpha1.Terraform) RunOptions { tfName := tf.Name name := tf.Status.PodNamePrefix versionedName := name + "-v" + fmt.Sprint(tf.Generation) - terraformRunner := "isaaguilar/tf-runner-v5alpha6" + terraformRunner := "isaaguilar/tf-runner-v5beta1" terraformRunnerPullPolicy := corev1.PullIfNotPresent - terraformVersion := "1.1.2" + terraformVersion := "1.1.3" scriptRunner := "isaaguilar/script-runner" scriptRunnerPullPolicy := corev1.PullIfNotPresent diff --git a/terraform-runner/build.sh b/terraform-runner/build.sh index 65d7504b..d96abddf 100644 --- a/terraform-runner/build.sh +++ b/terraform-runner/build.sh @@ -71,7 +71,7 @@ fi ## ## Build tf-runner(s) ## -TF_RUNNER_IMAGE_NAME="tf-runner-v5alpha6" +TF_RUNNER_IMAGE_NAME="tf-runner-v5beta1" printf "\n\n----------------\nFetching available hashicorp/terraform versions" i=0 BUILT_TF_RUNNER_IMAGES=($( diff --git a/terraform-runner/tf.sh b/terraform-runner/tf.sh index 48d2042d..fbe017b7 100755 --- a/terraform-runner/tf.sh +++ b/terraform-runner/tf.sh @@ -46,8 +46,8 @@ case "$TFO_RUNNER" in terraform apply tfplan 2>&1 | tee "$out"/"$TFO_RUNNER".out ;; esac - -if [[ ${PIPESTATUS[0]} -gt 0 ]];then exit ${PIPESTATUS[0]};fi +status=${PIPESTATUS[0]} +if [[ $status -gt 0 ]];then exit $status;fi if [[ "$TFO_RUNNER" == "apply" ]] && [[ "$TFO_SAVE_OUTPUTS" == "true" ]]; then # On sccessful apply, save outputs as k8s-secret