Skip to content

Commit f95abc0

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 2f83463 commit f95abc0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/gavv/httpexpect/v2 v2.16.0
1111
github.com/go-logr/logr v1.4.2
1212
github.com/go-logr/zapr v1.3.0
13+
github.com/google/go-cmp v0.6.0
1314
github.com/google/uuid v1.6.0
1415
github.com/gruntwork-io/terratest v0.47.0
1516
github.com/hashicorp/go-memdb v1.3.4
@@ -100,7 +101,6 @@ require (
100101
github.com/google/btree v1.1.2 // indirect
101102
github.com/google/cel-go v0.20.1 // indirect
102103
github.com/google/gnostic-models v0.6.8 // indirect
103-
github.com/google/go-cmp v0.6.0 // indirect
104104
github.com/google/go-querystring v1.1.0 // indirect
105105
github.com/google/gofuzz v1.2.0 // indirect
106106
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 // indirect

internal/types/k8s.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
package types
1919

2020
import (
21-
"github.com/apache/apisix-ingress-controller/api/v1alpha1"
22-
v2 "github.com/apache/apisix-ingress-controller/api/v2"
2321
corev1 "k8s.io/api/core/v1"
2422
v1 "k8s.io/api/networking/v1"
2523
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
24+
25+
"github.com/apache/apisix-ingress-controller/api/v1alpha1"
26+
v2 "github.com/apache/apisix-ingress-controller/api/v2"
2627
)
2728

2829
const DefaultIngressClassAnnotation = "ingressclass.kubernetes.io/is-default-class"

test/e2e/crds/v2/status.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"sigs.k8s.io/yaml"
3030

3131
apiv2 "github.com/apache/apisix-ingress-controller/api/v2"
32+
"github.com/apache/apisix-ingress-controller/internal/provider/adc"
3233
"github.com/apache/apisix-ingress-controller/test/e2e/framework"
3334
"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
3435
)
@@ -141,7 +142,7 @@ spec:
141142
})
142143

143144
It("dataplane unavailable", func() {
144-
if os.Getenv("PROVIDER_TYPE") == "api7ee" {
145+
if os.Getenv("PROVIDER_TYPE") == adc.BackendModeAPI7EE {
145146
Skip("skip for api7ee mode because it use dashboard admin api")
146147
}
147148
By("apply ApisixRoute")
@@ -309,7 +310,7 @@ spec:
309310
})
310311

311312
It("dataplane unavailable", func() {
312-
if os.Getenv("PROVIDER_TYPE") == "api7ee" {
313+
if os.Getenv("PROVIDER_TYPE") == adc.BackendModeAPI7EE {
313314
Skip("skip for api7ee mode because it use dashboard admin api")
314315
}
315316
By("Create HTTPRoute")

0 commit comments

Comments
 (0)