Skip to content

Commit 3d1808d

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 0bb0e4b commit 3d1808d

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Dockerfile.dev

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG ENABLE_PROXY=false
33
FROM node:22 AS node_builder
44

55
ARG TARGETARCH
6-
ARG ADC_COMMIT=78484e87a0168e0f86d130bfae8f808d0d1a1e41
6+
ARG ADC_COMMIT=e948079ed0576dbac29320ebfa01c9b7a298924c
77

88
WORKDIR /app
99

@@ -22,10 +22,13 @@ RUN apt update \
2222
&& rm -rf /app
2323

2424
FROM debian:bullseye-slim
25+
26+
ARG TARGETARCH
27+
2528
WORKDIR /app
2629

2730
COPY --from=node_builder /bin/adc /bin/adc
28-
COPY ./bin/apisix-ingress-controller .
31+
COPY ./bin/apisix-ingress-controller_${TARGETARCH} ./apisix-ingress-controller
2932
COPY ./config/samples/config.yaml ./conf/config.yaml
3033

3134
ENTRYPOINT ["/app/apisix-ingress-controller"]

test/e2e/gatewayapi/controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ package gatewayapi
1414

1515
import (
1616
"fmt"
17-
"log"
1817
"time"
1918

2019
. "github.com/onsi/ginkgo/v2"
@@ -171,7 +170,6 @@ spec:
171170
ResourceApplied(s1, "HTTPRoute", "httpbin", "gateway1", route1, 1)
172171
routes, err := s1.DefaultDataplaneResource().Route().List(s1.Context)
173172
Expect(err).NotTo(HaveOccurred())
174-
log.Println("dump routes", routes)
175173
Expect(routes).To(HaveLen(1))
176174
assert.Equal(GinkgoT(), routes[0].Labels["k8s/controller-name"], "apisix.apache.org/apisix-ingress-controller-1")
177175
})

test/e2e/scaffold/adc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"os/exec"
2121
"time"
2222

23+
"github.com/api7/gopkg/pkg/log"
2324
"go.uber.org/zap"
2425
"gopkg.in/yaml.v3"
2526

2627
adctypes "github.com/apache/apisix-ingress-controller/api/adc"
2728
"github.com/apache/apisix-ingress-controller/internal/provider/adc/translator"
28-
"github.com/api7/gopkg/pkg/log"
2929
)
3030

3131
// DataplaneResource defines the interface for accessing dataplane resources

test/e2e/scaffold/api7_deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (s *API7Deployer) GetAdminEndpoint(_ ...*corev1.Service) string {
276276
func (s *API7Deployer) DefaultDataplaneResource() DataplaneResource {
277277
return newADCDataplaneResource(
278278
"api7ee",
279-
fmt.Sprintf("http://%s", s.Framework.GetDashboardEndpoint()),
279+
fmt.Sprintf("http://%s", s.GetDashboardEndpoint()),
280280
s.AdminKey(),
281281
false,
282282
)

test/e2e/scaffold/apisix_deployer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ func (s *APISIXDeployer) BeforeEach() {
9292
e.Add(func() {
9393
s.DeployDataplane()
9494
s.DeployIngress()
95-
s.createAdminTunnel(s.dataplaneService)
95+
adminTunnel, err := s.createAdminTunnel(s.dataplaneService)
96+
Expect(err).NotTo(HaveOccurred())
97+
s.adminTunnel = adminTunnel
9698
})
9799
e.Add(s.DeployTestService)
98100
e.Wait()

0 commit comments

Comments
 (0)