All Projects → kbst → Terraform Provider Kustomization

kbst / Terraform Provider Kustomization

Licence: apache-2.0
Terraform provider for Kustomize

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Terraform Provider Kustomization

Terraform
Terraform - Beginners | Intermediate | Advanced
Stars: ✭ 77 (-43.38%)
Mutual labels:  terraform-provider
Terraform Provider Pagerduty
Terraform PagerDuty provider
Stars: ✭ 106 (-22.06%)
Mutual labels:  terraform-provider
Terraform Provider Google Beta
Terraform Google Cloud Platform Beta provider
Stars: ✭ 123 (-9.56%)
Mutual labels:  terraform-provider
Terraform Provider Tls
Provides utilities for working with Transport Layer Security keys and certificates. It provides resources that allow private keys, certificates and certficate requests to be created as part of a Terraform deployment.
Stars: ✭ 88 (-35.29%)
Mutual labels:  terraform-provider
Terraform Provider Postgresql
As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/cyrilgdn/postgresql
Stars: ✭ 101 (-25.74%)
Mutual labels:  terraform-provider
Terraform Provider Zerotier
Create, modify and destroy ZeroTier networks and members through Terraform.
Stars: ✭ 113 (-16.91%)
Mutual labels:  terraform-provider
Terraform Provider Aiven
Terraform Aiven provider
Stars: ✭ 68 (-50%)
Mutual labels:  terraform-provider
Terraform Provider Docker
As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
Stars: ✭ 131 (-3.68%)
Mutual labels:  terraform-provider
Terraform Provider Linode
Terraform Linode provider
Stars: ✭ 105 (-22.79%)
Mutual labels:  terraform-provider
Terraform Provider Grafana
Terraform Grafana provider
Stars: ✭ 118 (-13.24%)
Mutual labels:  terraform-provider
Terraform Provider Google
Terraform Google Cloud Platform provider
Stars: ✭ 1,318 (+869.12%)
Mutual labels:  terraform-provider
Terraform Provider Namecheap
Terraform provider for Namecheap
Stars: ✭ 101 (-25.74%)
Mutual labels:  terraform-provider
Terraform Provider Databricks
Databricks Terraform Provider
Stars: ✭ 119 (-12.5%)
Mutual labels:  terraform-provider
Terraform Provider Tencentcloud
Terraform TencentCloud Provider
Stars: ✭ 85 (-37.5%)
Mutual labels:  terraform-provider
Terraform Provider Mongodbatlas
Terraform provider for MongoDB Atlas
Stars: ✭ 126 (-7.35%)
Mutual labels:  terraform-provider
Terraform Provider Vcd
Terraform VMware vCloud Director provider
Stars: ✭ 73 (-46.32%)
Mutual labels:  terraform-provider
Terraform Provider Okta
🎉 Now an official Terraform provider! 🚚 We've moved to https://github.com/terraform-providers/terraform-provider-okta/
Stars: ✭ 111 (-18.38%)
Mutual labels:  terraform-provider
Terraform Provider Scaffolding
Quick start repository for creating a Terraform provider
Stars: ✭ 129 (-5.15%)
Mutual labels:  terraform-provider
Terraform Provider Rancher2
Terraform Rancher2 provider
Stars: ✭ 129 (-5.15%)
Mutual labels:  terraform-provider
Terraform Provider Template
Terraform template provider
Stars: ✭ 119 (-12.5%)
Mutual labels:  terraform-provider

Terraform Provider Kustomize

Run Tests

This provider aims to solve 3 common issues of applying a kustomization using kubectl by integrating Kustomize and Terraform.

  1. Lack of feedback what changes will be applied.
  2. Resources from a previous apply not in the current apply are not purged.
  3. Immutable changes like e.g. changing a deployment's selector cause the apply to fail mid way.

To solve this the provider uses the Terraform state to show changes to each resource individually during plan as well as track resources in need of purging.

It also uses server side dry runs to validate changes to the desired state and translate this into a Terraform plan that will show if a resource will be updated in-place or requires a delete and recreate to apply the changes.

As such it can be useful both to replace kustomize/kubectl integrated into a Terraform configuration as a provisioner as well as standalone kubectl diff/apply steps in CI/CD.

Using the Provider

The Terraform provider for Kustomize is available from the Terraform registry. Please refert to the documentation for information on how to use the kustomization_build and kustomization_overlay data sources, or the kustomization_resource resource.

Development Requirements

  • Terraform 0.12.x
  • Go 1.13 (to build the provider plugin)

Building and Developing the Provider

To work on the provider, you need go installed on your machine (version 1.13.x tested). 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, you can simply run the acceptance tests using make test. You can set the KUBECONFIG environment variable to point the tests to a specific cluster or set the context of your current config accordingly. The tests create namespaces on the current context. Kind or Minikube clusters work well for testing.

$ make test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].