-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds the argo workflow to run terraform templates (#203)
Signed-off-by: Nima Kaviani <[email protected]>
- Loading branch information
1 parent
11eccd5
commit d08aed5
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
examples/terraform-integrations/terraform-workflows-templates.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
path: argo-workflows-templates/dev | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: argo | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
automated: | ||
selfHeal: true |