Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.03 KB

DEVELOPMENT.md

File metadata and controls

25 lines (16 loc) · 1.03 KB

Development Environment Setup

Requirements

  • Terraform 0.12+
  • Go 1.13 or higher
  • Make sure that your Docker Engine has enough memory assigned to run multi-node kind clusters.

Development

Perform the following steps to build the providers:

  1. Build the provider:

    go build -o terraform-provider-kind
  2. Move the provider binary into the terraform plugins folder.

    NOTE: For details on Terraform plugins see this document.

Testing

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.