Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 970 Bytes

CONTRIBUTING.md

File metadata and controls

57 lines (37 loc) · 970 Bytes

Contributing

Interested in contributing to Spinnaker? Please help us!

Setup

Go

Install Go.

Go modules

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.

Running Spinnaker Provider

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

Running tests

Test the provider by

go test -v ./...