mirror of
https://github.com/alibaba/higress.git
synced 2026-05-27 22:27:29 +08:00
refactor(v2): upgrade module to github.com/alibaba/higress/v2 (#2922)
Signed-off-by: Xijun Dai <daixijun1990@gmail.com>
This commit is contained in:
@@ -26,9 +26,9 @@ import (
|
||||
listerv1 "k8s.io/client-go/listers/core/v1"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
|
||||
"github.com/alibaba/higress/pkg/cert"
|
||||
"github.com/alibaba/higress/pkg/common"
|
||||
"github.com/alibaba/higress/pkg/ingress/kube/annotations"
|
||||
"github.com/alibaba/higress/v2/pkg/cert"
|
||||
"github.com/alibaba/higress/v2/pkg/common"
|
||||
"github.com/alibaba/higress/v2/pkg/ingress/kube/annotations"
|
||||
)
|
||||
|
||||
type ServiceKey struct {
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"istio.io/istio/pkg/config/schema/collections"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
|
||||
. "github.com/alibaba/higress/pkg/ingress/log"
|
||||
. "github.com/alibaba/higress/v2/pkg/ingress/log"
|
||||
)
|
||||
|
||||
type PathType string
|
||||
|
||||
@@ -31,8 +31,8 @@ import (
|
||||
networkingv1beta1 "k8s.io/api/networking/v1beta1"
|
||||
"k8s.io/apimachinery/pkg/util/version"
|
||||
|
||||
netv1 "github.com/alibaba/higress/client/pkg/apis/networking/v1"
|
||||
. "github.com/alibaba/higress/pkg/ingress/log"
|
||||
netv1 "github.com/alibaba/higress/v2/client/pkg/apis/networking/v1"
|
||||
. "github.com/alibaba/higress/v2/pkg/ingress/log"
|
||||
)
|
||||
|
||||
func ValidateBackendResource(resource *v1.TypedLocalObjectReference) bool {
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"github.com/alibaba/higress/pkg/ingress/kube/annotations"
|
||||
"github.com/alibaba/higress/v2/pkg/ingress/kube/annotations"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -201,7 +201,6 @@ func TestGenerateUniqueRouteName(t *testing.T) {
|
||||
|
||||
assert.Equal(t, "bar/foo", GenerateUniqueRouteName("xxx", input))
|
||||
assert.Equal(t, "foo", GenerateUniqueRouteName("bar", input))
|
||||
|
||||
}
|
||||
|
||||
func TestGetLbStatusList(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user