diff --git a/.gitignore b/.gitignore index d7f11e71..f6564d9a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ bin/* cover.out __debug* .vscode +.idea \ No newline at end of file diff --git a/examples/terraform-integrations/flux-controller.yaml b/examples/terraform-integrations/flux-controller.yaml new file mode 100644 index 00000000..a2e8dad2 --- /dev/null +++ b/examples/terraform-integrations/flux-controller.yaml @@ -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 \ No newline at end of file diff --git a/examples/terraform-integrations/gitops-terraform-controller.yaml b/examples/terraform-integrations/gitops-terraform-controller.yaml new file mode 100644 index 00000000..061155f6 --- /dev/null +++ b/examples/terraform-integrations/gitops-terraform-controller.yaml @@ -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 \ No newline at end of file diff --git a/examples/terraform-integrations/terraform-workflows-templates.yaml b/examples/terraform-integrations/terraform-workflows-templates.yaml index 106aa443..dfc3a599 100644 --- a/examples/terraform-integrations/terraform-workflows-templates.yaml +++ b/examples/terraform-integrations/terraform-workflows-templates.yaml @@ -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: