Skip to content

Commit

Permalink
Merge pull request #1 from mlops-on-kubernetes/feature/tofuController
Browse files Browse the repository at this point in the history
Flux and Terraform Controllers for Terraform backstage integrations
  • Loading branch information
elamaran11 authored May 10, 2024
2 parents 57d969b + 564a6b9 commit 81c2770
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ bin/*
cover.out
__debug*
.vscode
.idea
39 changes: 39 additions & 0 deletions examples/terraform-integrations/flux-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
name: flux-controller
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: 'https://fluxcd-community.github.io/helm-charts'
targetRevision: 2.12.4
helm:
releaseName: flux2
values: |
helmController:
create: false
imageAutomationController:
create: false
imageReflectionController:
create: false
kustomizeController:
create: false
notificationController:
create: false
chart: flux2
destination:
server: 'https://kubernetes.default.svc'
namespace: flux-system
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
34 changes: 34 additions & 0 deletions examples/terraform-integrations/gitops-terraform-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "2"
name: gitops-terraform-controller
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: 'https://flux-iac.github.io/tofu-controller'
targetRevision: v0.15.0
helm:
releaseName: tf-controller
values: |
allowCrossNamespaceRefs: true
watchAllNamespaces: true
awsPackage:
install: true
repository: ghcr.io/flux-iac/aws-primitive-modules
chart: tf-controller
destination:
server: 'https://kubernetes.default.svc'
namespace: flux-system
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "3"
name: terraform-argo-workflows-templates
namespace: argocd
labels:
Expand Down

0 comments on commit 81c2770

Please sign in to comment.