We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a840f92 commit c1f257dCopy full SHA for c1f257d
1 file changed
test/e2e/scaffold/adc.go
@@ -26,6 +26,7 @@ import (
26
27
adctypes "github.com/apache/apisix-ingress-controller/api/adc"
28
"github.com/apache/apisix-ingress-controller/internal/provider/adc/translator"
29
+ "github.com/apache/apisix-ingress-controller/test/e2e/framework"
30
)
31
32
// DataplaneResource defines the interface for accessing dataplane resources
@@ -131,6 +132,9 @@ func (a *adcDataplaneResource) dumpResources(ctx context.Context) (*translator.T
131
132
"ADC_SERVER=" + a.serverAddr,
133
"ADC_TOKEN=" + a.token,
134
}
135
+ if providerType := os.Getenv(framework.EnvKeyProviderType); providerType != "" {
136
+ adcEnv = append(adcEnv, "ADC_BACKEND="+providerType)
137
+ }
138
139
var stdout, stderr bytes.Buffer
140
cmd := exec.CommandContext(ctxWithTimeout, "adc", args...)
0 commit comments