Add script validation for Terraform#1732
Conversation
|
The presubmit job will have a command like: hack/verify-terraform.sh infra/gcp/clusters/projects/k8s-infra-prow-build/prow-build |
|
/hold |
hack/verify-terraform.sh
Outdated
| exit 1 | ||
| fi | ||
|
|
||
| TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip" |
There was a problem hiding this comment.
I'd rather this work on my laptop too.
I think a version check and erroring out if it doesn't exist/match would be a good start. Let the developer work out how to get the correct version, and assume when this runs in a container it will have the correct version already installed
Handy for managing locally, maybe useful to allow CI to auto-install / switch:
There was a problem hiding this comment.
I'll go for tfswitch since it supports version.tf.
Download terraform and validate Terraform configuration for a given path assuming terraform files are present in this path. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
|
/test pull-k8sio-verify |
|
For the record - |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ameukam, spiffxp The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/remove hold |
1 similar comment
|
/remove hold |
|
/unhold |
Download terraform and validate Terraform configuration for
a given path assuming terraform files are presen in this path.
Signed-off-by: Arnaud Meukam ameukam@gmail.com