redhat-developer / argocd-terraform-controller

Argo CD Terraform Controller
26 stars 7 forks source link

Get terraform files from remote repo #16

Closed josephsawaya closed 2 years ago

josephsawaya commented 2 years ago

This commit implements getting the terraform files from the remote repository using the argocd-repo-server.

This commit implements an argocd plugin which is necessary fetching the remote terraform files. This plugin calls a script which runs in the path specified by the Terraform CR. Similar to this ArgoCD vault plugin.

This commit creates a RepoClient to call the GenerateManifests function in the repo server to make use of this plugin and get the files. Finally it prints the contents of the manifests returned by the the repo server.

Fixes: #4

Depends on: #14

josephsawaya commented 2 years ago

I tried to run the test framework without success. Are there steps that need to be followed? Add to README.md?

So the test framework changes are a part of #13. I realize now that having many PRs open that depend on each other is probably confusing, so I'm going to close my previous PR, and try to remove the commits in this PR that are a part of #13.