1+ // Copyright Envoy Gateway Authors
2+ // SPDX-License-Identifier: Apache-2.0
3+ // The full text of the Apache license is available in the LICENSE file at
4+ // the root of the repo.
5+
16package extension
27
38import (
@@ -12,9 +17,6 @@ import (
1217 "strings"
1318 "time"
1419
15- egv1a1 "github.com/envoyproxy/gateway/api/v1alpha1"
16- "github.com/envoyproxy/gateway/internal/kubernetes"
17- "github.com/envoyproxy/gateway/internal/utils/fraction"
1820 "google.golang.org/grpc"
1921 "google.golang.org/grpc/codes"
2022 "google.golang.org/grpc/credentials"
@@ -25,6 +27,10 @@ import (
2527 "k8s.io/utils/ptr"
2628 k8scli "sigs.k8s.io/controller-runtime/pkg/client"
2729 gwapiv1 "sigs.k8s.io/gateway-api/apis/v1"
30+
31+ egv1a1 "github.com/envoyproxy/gateway/api/v1alpha1"
32+ "github.com/envoyproxy/gateway/internal/kubernetes"
33+ "github.com/envoyproxy/gateway/internal/utils/fraction"
2834)
2935
3036const grpcServiceConfigTemplate = `{
@@ -57,7 +63,7 @@ func GetExtensionServerAddress(service *egv1a1.ExtensionService) string {
5763}
5864
5965// GenerateGRPCOptions generates the necessary connection descriptors for a GRPC client.
60- func GenerateGRPCOptions (ctx context.Context , client k8scli.Client , ext * egv1a1.ExtensionService , maxMessageSize * resource.Quantity , svcName string , namespace string ) ([]grpc.DialOption , error ) {
66+ func GenerateGRPCOptions (ctx context.Context , client k8scli.Client , ext * egv1a1.ExtensionService , maxMessageSize * resource.Quantity , svcName , namespace string ) ([]grpc.DialOption , error ) {
6167 // These two errors shouldn't happen since we check these conditions when loading the extension
6268 if ext == nil {
6369 return nil , errors .New ("the registered extension's config is nil" )
0 commit comments