Skip to content

Commit f2f39ca

Browse files
committed
fix: adc backend env
Signed-off-by: ashing <[email protected]>
1 parent 2647195 commit f2f39ca

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/e2e/scaffold/adc.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
adctypes "github.com/apache/apisix-ingress-controller/api/adc"
3333
"github.com/apache/apisix-ingress-controller/internal/provider/adc/translator"
34-
"github.com/apache/apisix-ingress-controller/test/e2e/framework"
3534
)
3635

3736
// DataplaneResource defines the interface for accessing dataplane resources
@@ -137,9 +136,6 @@ func (a *adcDataplaneResource) dumpResources(ctx context.Context) (*translator.T
137136
"ADC_SERVER=" + a.serverAddr,
138137
"ADC_TOKEN=" + a.token,
139138
}
140-
if framework.ProviderType != "" {
141-
adcEnv = append(adcEnv, "ADC_BACKEND="+framework.ProviderType)
142-
}
143139

144140
var stdout, stderr bytes.Buffer
145141
cmd := exec.CommandContext(ctxWithTimeout, "adc", args...)

test/e2e/scaffold/apisix_deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func (s *APISIXDeployer) GetAdminEndpoint(svc ...*corev1.Service) string {
384384

385385
func (s *APISIXDeployer) DefaultDataplaneResource() DataplaneResource {
386386
return newADCDataplaneResource(
387-
"apisix-standalone",
387+
framework.ProviderType,
388388
fmt.Sprintf("http://%s", s.adminTunnel.Endpoint()),
389389
s.AdminKey(),
390390
false, // tlsVerify

0 commit comments

Comments
 (0)