diff --git a/api/mesh/v1alpha1/virtual_service_help.go b/api/mesh/v1alpha1/virtual_service_help.go index c0068f0c..df2e39fa 100644 --- a/api/mesh/v1alpha1/virtual_service_help.go +++ b/api/mesh/v1alpha1/virtual_service_help.go @@ -18,17 +18,22 @@ package v1alpha1 import ( - "github.com/apache/dubbo-kubernetes/pkg/util/sets" - "github.com/golang/protobuf/proto" - "golang.org/x/exp/slices" "regexp" "strings" ) import ( + "github.com/golang/protobuf/proto" + + "golang.org/x/exp/slices" + "google.golang.org/protobuf/types/known/durationpb" ) +import ( + "github.com/apache/dubbo-kubernetes/pkg/util/sets" +) + type TrafficRoute_Http_Match struct { Authority *StringMatch Method *StringMatch diff --git a/pkg/core/consts/const.go b/pkg/core/consts/const.go index 3076ce2d..315b3698 100644 --- a/pkg/core/consts/const.go +++ b/pkg/core/consts/const.go @@ -18,10 +18,13 @@ package consts import ( - set "github.com/dubbogo/gost/container/set" "time" ) +import ( + set "github.com/dubbogo/gost/container/set" +) + const ( DubboPropertyKey = "dubbo.properties" RegistryAddressKey = "dubbo.registry.address" diff --git a/pkg/xds/envoy/virtualhosts/routes_configurer.go b/pkg/xds/envoy/virtualhosts/routes_configurer.go index 185edb21..98461953 100644 --- a/pkg/xds/envoy/virtualhosts/routes_configurer.go +++ b/pkg/xds/envoy/virtualhosts/routes_configurer.go @@ -18,7 +18,6 @@ package virtualhosts import ( - "github.com/golang/protobuf/ptypes/wrappers" "sort" ) @@ -26,6 +25,8 @@ import ( envoy_config_core_v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" envoy_config_route_v3 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" envoy_type_matcher_v3 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + + "github.com/golang/protobuf/ptypes/wrappers" ) import (