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

Terragrunt plugins prototype #3162

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
803121a
add execution plugins
denis256 May 20, 2024
42caf01
plugins loading test
denis256 May 20, 2024
f6db904
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 May 27, 2024
5a9a5f9
RPC plugin test
denis256 May 28, 2024
d012b53
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 May 31, 2024
3aa710d
Plugin types
denis256 May 31, 2024
f3b5763
Makefile revert
denis256 May 31, 2024
9ca4d83
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 Jun 5, 2024
fbe1684
Add protobuf plugins
denis256 Jun 7, 2024
fa4ba05
Generated plugins
denis256 Jun 7, 2024
60be8bd
Add support for env vars
denis256 Jun 7, 2024
8650a5c
Migration of terraform plugins
denis256 Jun 7, 2024
296d3c1
test plugin loading
denis256 Jun 7, 2024
005aa3a
passing terraform commands
denis256 Jun 7, 2024
36b4929
add output passing
denis256 Jun 7, 2024
77c75e6
Add tofu plugin execution
denis256 Jun 7, 2024
8bbffa0
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 Jun 10, 2024
4870f9c
Added plugin streaming
denis256 Jun 10, 2024
8a2625b
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 Jun 12, 2024
bcc726f
Stdout streaming fixes
denis256 Jun 12, 2024
075eb6a
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 Jun 13, 2024
ccec4c9
Go plugin updates
denis256 Jun 13, 2024
c92d6a6
fixed passing of plugins
denis256 Jun 14, 2024
faff60f
Fixed passing stdin / stdout
denis256 Jun 14, 2024
5ecee17
working plugin redirection to terminal
denis256 Jun 14, 2024
e9378ef
Merge remote-tracking branch 'origin/master' into feature/terragrunt-…
denis256 Jun 17, 2024
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
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)

force: .

help:
@echo "Various utilities for managing the terragrunt repository"

Expand Down Expand Up @@ -50,4 +52,9 @@ install-mockery:
generate-mocks:
go generate ./...

plugins: force
protoc --go_out=. --go_opt=paths=source_relative plugins/plugins.proto
protoc --go-grpc_out=. --go-grpc_opt=paths=source_relative plugins/plugins.proto


.PHONY: help fmtcheck fmt install-fmt-hook clean install-lint run-lint
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ require (
github.com/gruntwork-io/go-commons v0.17.1
github.com/gruntwork-io/gruntwork-cli v0.7.0
github.com/hashicorp/go-getter/v2 v2.2.1
github.com/hashicorp/go-plugin v1.4.10
github.com/labstack/echo/v4 v4.11.4
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/pkg/errors v0.9.1
Expand All @@ -86,6 +87,8 @@ require (
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
golang.org/x/term v0.21.0
golang.org/x/text v0.16.0
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.33.0
gopkg.in/ini.v1 v1.67.0
)

Expand Down Expand Up @@ -168,7 +171,6 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-plugin v1.4.10 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
Expand Down Expand Up @@ -239,8 +241,6 @@ require (
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
Expand Down
Loading