Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kateryna Nezdolii <kateryna.nezdolii@docker.com>
  • Loading branch information
nezdolik authored and zirain committed Feb 2, 2025
1 parent 3e185f7 commit cefa927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/xds/translator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
proxyprotocolv3 "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/proxy_protocol/v3"
rawbufferv3 "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3"
httpv3 "github.com/envoyproxy/go-control-plane/envoy/extensions/upstreams/http/v3"
v33 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
xdstype "github.com/envoyproxy/go-control-plane/envoy/type/v3"
"github.com/envoyproxy/go-control-plane/pkg/resource/v3"
"github.com/envoyproxy/go-control-plane/pkg/wellknown"
Expand Down Expand Up @@ -96,7 +95,7 @@ func buildXdsCluster(args *xdsClusterArgs) *clusterv3.Cluster {
dnsLookupFamily = clusterv3.Cluster_ALL
}
}
panicThreshold := &v33.Percent{
panicThreshold := &xdstype.Percent{
Value: float64(50),
}
if args.healthCheck.PanicThreshold != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/xds/translator/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package translator

import (
"k8s.io/utils/ptr"
"testing"

bootstrapv3 "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
"k8s.io/utils/ptr"
"sigs.k8s.io/yaml"

"github.com/envoyproxy/gateway/internal/ir"
Expand Down

0 comments on commit cefa927

Please sign in to comment.