/terraform-provider-k8s

Terraform Kubernetes provider to fill in the resource gaps

Primary LanguageGo

Terraform: Kubernetes

CircleCI

Maintainer: Nick Schuch

Terraform provider for Kubernetes.

Compared to core Kubernetes provider

  • We support APIs outside of the "v1" space eg. Deployment, Daemonset, Cronjob etc.
  • We don't wait for manifests to deploy - Service Object to get a load balancer provisioned.

Development

Getting started

For steps on getting started with Go:

https://golang.org/doc/install

To get a checkout of the project run the following commands:

# Make sure the parent directories exist.
mkdir -p $GOPATH/src/github.com/previousnext

# Checkout the codebase.
git clone git@github.com:previousnext/terraform-provider-k8s $GOPATH/src/github.com/previousnext/terraform-provider-k8s

# Change into the project to run workflow commands.
cd $GOPATH/src/github.com/previousnext/terraform-provider-k8s

Documentation

See /docs

Resources

Tools

# Dependency management
go get -u github.com/golang/dep/cmd/dep

# Testing
go get -u github.com/golang/lint/golint

# Release management.
go get -u github.com/tcnksm/ghr

# Build
go get -u github.com/mitchellh/gox

Workflow

Testing

make lint test

Building

make build

Releasing

make release