File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import (
2626
2727 adctypes "github.com/apache/apisix-ingress-controller/api/adc"
2828 "github.com/apache/apisix-ingress-controller/internal/provider/adc/translator"
29+ "github.com/apache/apisix-ingress-controller/test/e2e/framework"
2930)
3031
3132// DataplaneResource defines the interface for accessing dataplane resources
@@ -131,6 +132,9 @@ func (a *adcDataplaneResource) dumpResources(ctx context.Context) (*translator.T
131132 "ADC_SERVER=" + a .serverAddr ,
132133 "ADC_TOKEN=" + a .token ,
133134 }
135+ if providerType := os .Getenv (framework .EnvKeyProviderType ); providerType != "" {
136+ adcEnv = append (adcEnv , "ADC_BACKEND=" + providerType )
137+ }
134138
135139 var stdout , stderr bytes.Buffer
136140 cmd := exec .CommandContext (ctxWithTimeout , "adc" , args ... )
You can’t perform that action at this time.
0 commit comments