Skip to content

Commit fef07fb

Browse files
authored
internal: Split v3procservicepb import into pb and grpc for extproc (#9163)
Split v3procservicepb import into pb and grpc for extproc for internal transformations. RELEASE NOTES: n/a
1 parent 91dd64f commit fef07fb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

internal/xds/httpfilter/extproc/ext_proc.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535

3636
v3corepb "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
3737
v3procfilterpb "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_proc/v3"
38+
v3procservicegrpc "github.com/envoyproxy/go-control-plane/envoy/service/ext_proc/v3"
3839
v3procservicepb "github.com/envoyproxy/go-control-plane/envoy/service/ext_proc/v3"
3940
)
4041

@@ -45,6 +46,10 @@ func init() {
4546
}
4647

4748
var (
49+
// TODO: Remove this once we have code that actually uses messages from this
50+
// protobuf package.
51+
_ = v3procservicepb.ProcessingRequest{}
52+
4853
parseGRPCServiceConfig = func(*v3corepb.GrpcService) (xdsresource.GRPCServiceConfig, error) {
4954
return xdsresource.GRPCServiceConfig{}, fmt.Errorf("parseGRPCServiceConfig not implemented")
5055
}
@@ -219,15 +224,15 @@ func (clientFilter) BuildClientInterceptor(base, override httpfilter.FilterConfi
219224
}
220225
return &clientInterceptor{
221226
config: config,
222-
extClient: v3procservicepb.NewExternalProcessorClient(cc),
227+
extClient: v3procservicegrpc.NewExternalProcessorClient(cc),
223228
cancel: cancel,
224229
}, nil
225230
}
226231

227232
type clientInterceptor struct {
228233
resolver.ClientInterceptor
229234
config baseConfig
230-
extClient v3procservicepb.ExternalProcessorClient
235+
extClient v3procservicegrpc.ExternalProcessorClient
231236
cancel func() error
232237
}
233238

0 commit comments

Comments
 (0)