Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 5d8a671

Browse files
authored
Merge pull request #4444 from hashicorp/make-docker/gen/plugins
New make command to generate plugin protos with docker
2 parents 9f8110a + 3c04a38 commit 5d8a671

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+109
-60
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ docker/gen/server: docker/tools
8686
@test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; }
8787
docker run -v `pwd`:/waypoint -it docker.io/library/waypoint-tools:dev make gen/server
8888

89+
.PHONY: docker/gen/plugins
90+
docker/gen/plugins: docker/tools
91+
@test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; }
92+
docker run -v `pwd`:/waypoint -it docker.io/library/waypoint-tools:dev make gen/plugins
93+
8994
# expected to be invoked by make gen/changelog LAST_RELEASE=gitref THIS_RELEASE=gitref
9095
.PHONY: gen/changelog
9196
gen/changelog: # Generates the changelog for Waypoint

builtin/aws/alb/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
sdk "github.com/hashicorp/waypoint-plugin-sdk"
55
)
66

7-
//go:generate protoc -I ../../../.. -I ../../../thirdparty/proto --go_opt=plugins=grpc --go_out=../../../.. waypoint/builtin/aws/alb/plugin.proto
7+
//go:generate protoc -I ../../../.. -I ../../../thirdparty/proto --go_out=../../../.. --go-grpc_out=../../../.. waypoint/builtin/aws/alb/plugin.proto
88

99
// Options are the SDK options to use for instantiation.
1010
var Options = []sdk.Option{

builtin/aws/alb/plugin.pb.go

Lines changed: 29 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builtin/aws/alb/plugin.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ message Release {
2323
message Resource {
2424
message SecurityGroup {
2525
string id = 1;
26+
// Indicates that this resource has been created by and is owned by waypoint
27+
// (and is therefore safe for waypoint to delete during a project destroy)
28+
bool managed = 2;
2629
}
2730

2831
message LoadBalancer {

builtin/aws/ami/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/hashicorp/waypoint-plugin-sdk"
55
)
66

7-
//go:generate protoc -I ../../../.. --go_opt=plugins=grpc --go_out=../../../.. waypoint/builtin/aws/ami/plugin.proto
7+
//go:generate protoc -I ../../../.. --go_out=../../../.. --go-grpc_out=../../../.. waypoint/builtin/aws/ami/plugin.proto
88

99
// Options are the SDK options to use for instantiation.
1010
var Options = []sdk.Option{

builtin/aws/ami/plugin.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builtin/aws/ec2/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/hashicorp/waypoint-plugin-sdk"
55
)
66

7-
//go:generate protoc -I ../../../.. --go_opt=plugins=grpc --go_out=../../../.. waypoint/builtin/aws/ec2/plugin.proto
7+
//go:generate protoc -I ../../../.. --go_out=../../../.. --go-grpc_out=../../../.. waypoint/builtin/aws/ec2/plugin.proto
88

99
// Options are the SDK options to use for instantiation.
1010
var Options = []sdk.Option{

builtin/aws/ec2/plugin.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builtin/aws/ecr/ecr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/hashicorp/waypoint-plugin-sdk"
55
)
66

7-
//go:generate protoc -I ../../../.. --go_opt=plugins=grpc --go_out=../../../.. waypoint/builtin/aws/ecr/plugin.proto
7+
//go:generate protoc -I ../../../.. --go_out=../../../.. --go-grpc_out=../../../.. waypoint/builtin/aws/ecr/plugin.proto
88

99
// Options are the SDK options to use for instantiation.
1010
var Options = []sdk.Option{

builtin/aws/ecr/plugin.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)