File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# tf-controller
22
3- A Terraform controller for Flux
3+ ` tf-controller ` is an experimental controller for Flux to reconcile Terraform resources.
44
55## Quick start
66
7- Here's a simple example of how to GitOps-ify your Terraform resources with TF controller and Flux.
7+ Here's a simple example of how to GitOps-ify your Terraform resources with ` tf-controller ` and Flux.
8+
9+ ### Define source
10+
11+ ``` yaml
12+ apiVersion : source.toolkit.fluxcd.io/v1beta1
13+ kind : GitRepository
14+ metadata :
15+ name : helloworld
16+ namespace : flux-system
17+ spec :
18+ interval : 30s
19+ url : https://github.com/tf-controller/helloworld
20+ ref :
21+ branch : main
22+ ` ` `
823
924### Auto-mode
1025
1126` ` ` yaml
12- apiVersion : infra.contrib.fluxcd.io
27+ apiVersion : infra.contrib.fluxcd.io/v1alpha1
1328kind : Terraform
1429metadata :
1530 name : hello-world
2338 namespace : flux-system
2439` ` `
2540
26- ### Plan and manually approve
41+ ### Plan and manual approval
2742
2843` ` ` diff
2944apiVersion : infra.contrib.fluxcd.io/v1alpha1
You can’t perform that action at this time.
0 commit comments