Home

Awesome

<p align="center"> <img src="./assets/favicon.png" alt="Kubestack, The Open Source Gitops Framework" width="25%" height="25%" /> </p> <h1 align="center">Terraform Provider Kustomize</h1> <div align="center">

Status Run Tests GitHub Issues GitHub Pull Requests

</div> <div align="center">

GitHub Repo stars Twitter Follow

</div> <h3 align="center"><a href="#Contributing">Join Our Contributors!</a></h3> <div align="center"> <a href="https://github.com/kbst/terraform-provider-kustomization/graphs/contributors"> <img src="https://contrib.rocks/image?repo=kbst/terraform-provider-kustomization&max=36" /> </a> </div>

Introduction

The Terraform provider for Kustomize is available from the Terraform registry.

Please refer to the documentation for information on how to use the kustomization_build and kustomization_overlay data sources, or the kustomization_resource resource.

This is a standalone Terraform Provider, but is also used in the Terraform GitOps framework Kubestack.

Getting Help

Community Help
If you have any questions while following the tutorial, join the #kubestack channel on the Kubernetes community. To create an account request an invitation.

Professional Services
For organizations interested in accelerating their GitOps journey, professional services are available.

Contributing

Contributions to the Kubestack framework are welcome and encouraged. Before contributing, please read the Contributing and Code of Conduct Guidelines.

One super simple way to contribute to the success of this project is to give it a star.

<div align="center">

GitHub Repo stars

</div>

Development Requirements

Building and Developing the Provider

To work on the provider, you need go installed on your machine. The provider uses go mod to manage its dependencies, so GOPATH is not required.

To compile the provider, run make build as shown below. This will build the provider and put the provider binary in the terraform.d/plugins/linux_amd64/ directory.

make build

In order to test the provider, run the acceptance tests using make test. You have to set the KUBECONFIG_PATH environment variable to point the tests to a valid config file. Each tests uses an individual namespaces. Kind or Minikube clusters work well for testing.

make test

Running the provider under debug

Running in debug mode is a four step process - launch the plugin in debug mode under delve, connect your IDE to delve, connect terraform to the plugin, and then run terraform. Instructions here are for Visual Studio Code, configuring other IDEs is likely to be a similar process

Running a specific test in debug mode

Kubestack Repositories