Interested in contributing to Spinnaker? Please help us!
Clone the repository to a directory outside of your GOPATH:
$ git clone https://github.com/mercari/terraform-provider-spinnaker
Afterward, use go build
to build the program. This will automatically fetch dependencies.
$ go build
Upon first build, you may see output while the go
tool fetches dependencies.
To verify dependencies match checksums under go.sum, run go mod verify
.
To clean up any old, unused go.mod or go.sum lines, run go mod tidy
.
Create a provider.tf
.
provider "spinnaker" {
gate_endpoint = "https://spinnaker-api.xxx.com"
}
Build this provider.
$ go build
Then run the Terraform operations.
$ terraform init
Test the provider by
go test -v ./...