Skip to content

Commit

Permalink
Support multi-module releases in go-control-plane
Browse files Browse the repository at this point in the history
Signed-off-by: Alec Holmes <[email protected]>
Signed-off-by: Valerian Roche <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
alecholmez authored and mmorel-35 committed Dec 12, 2024
1 parent e0e3832 commit 83a791c
Show file tree
Hide file tree
Showing 16 changed files with 545 additions and 19 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test:

.PHONY: cover
cover:
@build/coverage.sh
@scripts/coverage.sh

.PHONY: examples
examples:
Expand Down Expand Up @@ -58,22 +58,22 @@ $(BINDIR)/test:
integration: integration.xds integration.ads integration.rest integration.xds.mux integration.xds.delta integration.ads.delta

integration.ads: $(BINDIR)/test $(BINDIR)/upstream
env XDS=ads build/integration.sh
env XDS=ads scripts/integration.sh

integration.xds: $(BINDIR)/test $(BINDIR)/upstream
env XDS=xds build/integration.sh
env XDS=xds scripts/integration.sh

integration.rest: $(BINDIR)/test $(BINDIR)/upstream
env XDS=rest build/integration.sh
env XDS=rest scripts/integration.sh

integration.xds.mux: $(BINDIR)/test $(BINDIR)/upstream
env XDS=xds build/integration.sh -mux
env XDS=xds scripts/integration.sh -mux

integration.xds.delta: $(BINDIR)/test $(BINDIR)/upstream
env XDS=delta build/integration.sh
env XDS=delta scripts/integration.sh

integration.ads.delta: $(BINDIR)/test $(BINDIR)/upstream
env XDS=delta-ads build/integration.sh
env XDS=delta-ads scripts/integration.sh

#--------------------------------------
#-- example xDS control plane server
Expand All @@ -84,12 +84,12 @@ $(BINDIR)/example:
@go build -race -o $@ internal/example/main/main.go

example: $(BINDIR)/example
@build/example.sh
@scripts/example.sh

.PHONY: docker_tests
docker_tests:
docker build --pull -f Dockerfile.ci . -t gcp_ci && \
docker run -v $$(pwd):/go-control-plane $$(tty -s && echo "-it" || echo) gcp_ci /bin/bash -c /go-control-plane/build/do_ci.sh
docker run -v $$(pwd):/go-control-plane $$(tty -s && echo "-it" || echo) gcp_ci /bin/bash -c /go-control-plane/scripts/do_ci.sh

.PHONY: tidy-all
tidy-all:
Expand Down
23 changes: 23 additions & 0 deletions contrib/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module github.com/envoyproxy/go-control-plane/contrib

go 1.21

replace github.com/envoyproxy/go-control-plane/envoy => ../envoy

require (
github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20
github.com/envoyproxy/go-control-plane/envoy v0.0.0-00010101000000-000000000000
github.com/envoyproxy/protoc-gen-validate v1.1.0
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.2
)

require (
cel.dev/expr v0.16.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
)
12 changes: 12 additions & 0 deletions contrib/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cel.dev/expr v0.16.0 h1:yloc84fytn4zmJX2GU3TkXGsaieaV7dQ057Qs4sIG2Y=
github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20 h1:N+3sFI5GUjRKBi+i0TxYVST9h4Ie192jJWpHvthBBgg=
github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs=
google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E=
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
23 changes: 23 additions & 0 deletions envoy/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module github.com/envoyproxy/go-control-plane/envoy

go 1.21

require (
github.com/census-instrumentation/opencensus-proto v0.4.1
github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20
github.com/envoyproxy/protoc-gen-validate v1.1.0
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10
github.com/prometheus/client_model v0.6.0
go.opentelemetry.io/proto/otlp v0.19.0
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.2
)

require (
cel.dev/expr v0.16.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
)
Loading

0 comments on commit 83a791c

Please sign in to comment.