Skip to content

Commit

Permalink
fix(terraform): validate k3s
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Mar 9, 2024
1 parent 08c49d8 commit 5fc4293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/scripts/terraform-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function tf_validate() {
pushd "${infra}" > /dev/null || exit 1
output=$(mktemp)
if [ -d "backend-vars" ]; then
terraform init -upgrade -backend-config=backend-vars/main.tfvars
tfvar_file=$(ls backend-vars/*.tfvars)
terraform init -upgrade -backend-config="${tfvar_file}"
else
terraform init -upgrade &> "${output}"
fi
Expand Down

0 comments on commit 5fc4293

Please sign in to comment.