- Terraform 0.12+
- Go 1.13 or higher
- Make sure that your Docker Engine has enough memory assigned to run multi-node kind clusters.
Perform the following steps to build the providers:
-
Build the provider:
go build -o terraform-provider-kind
-
Move the provider binary into the terraform plugins folder.
NOTE: For details on Terraform plugins see this document.
In order to test the provider you can run go test ./...
for the unit tests as well as make testacc
for the Acceptance Tests. If you prefer to only run tests and skip linting and formatting when running Acceptance Tests start them by running TF_ACC=1 go test ./kind -v -count 1 -parallel 20 -timeout 120m
.
Note: Acceptance tests create real resources, and will consume significant resources on the machine they run on.