Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds the argo workflow to run terraform templates #203

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/terraform-integrations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform Integrations for Backstage

This is an experimental effort allowing the users of the idpBuilder to run terraform modules using the tooling in place.

This stack add-on goes together with the work done under [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/).
Once the add-on is enabled, the user will need to follow the setup discussed in the [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/) repo for the remainder of the configuration, and terraform integrations should work.

This add-on has a dependency to the [reference implementation][../ref-implementation/]. In order to enable the add-on with
idpBuilder run the following:

```
./idpbuilder create --use-path-routing --package-dir examples/ref-implementation --package-dir examples/terraform-integrations
```
25 changes: 25 additions & 0 deletions examples/terraform-integrations/terraform-workflows-templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: terraform-argo-workflows-templates
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/cnoe-io/backstage-terraform-integrations
targetRevision: main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to pin to a version?

Copy link
Contributor Author

@nimakaviani nimakaviani Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. I'd say at a later point in time. Right now this whole line of work is experimental and for demo purposes.

path: argo-workflows-templates/dev
destination:
server: "https://kubernetes.default.svc"
namespace: argo
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
Loading