@@ -194,7 +194,7 @@ func (s *APISIXDeployer) deployDataplane(opts *APISIXDeployOptions) *corev1.Serv
194194
195195 kubectlOpts := k8s .NewKubectlOptions ("" , "" , opts .Namespace )
196196
197- if os . Getenv ( framework .EnvKeyProviderType ) == adc .BackendModeAPISIX {
197+ if framework .ProviderType == adc .BackendModeAPISIX {
198198 opts .ServiceName = "apisix"
199199 opts .ConfigProvider = "etcd"
200200 // deploy etcd
@@ -236,7 +236,7 @@ func (s *APISIXDeployer) deployDataplane(opts *APISIXDeployOptions) *corev1.Serv
236236func (s * APISIXDeployer ) DeployIngress () {
237237 s .Framework .DeployIngress (framework.IngressDeployOpts {
238238 ControllerName : s .opts .ControllerName ,
239- ProviderType : cmp .Or (os . Getenv ( framework .EnvKeyProviderType ) , "apisix-standalone" ),
239+ ProviderType : cmp .Or (framework .ProviderType , "apisix-standalone" ),
240240 ProviderSyncPeriod : 200 * time .Millisecond ,
241241 Namespace : s .namespace ,
242242 Replicas : 1 ,
@@ -246,7 +246,7 @@ func (s *APISIXDeployer) DeployIngress() {
246246func (s * APISIXDeployer ) ScaleIngress (replicas int ) {
247247 s .Framework .DeployIngress (framework.IngressDeployOpts {
248248 ControllerName : s .opts .ControllerName ,
249- ProviderType : cmp .Or (os . Getenv ( framework .EnvKeyProviderType ) , "apisix-standalone" ),
249+ ProviderType : cmp .Or (framework .ProviderType , "apisix-standalone" ),
250250 ProviderSyncPeriod : 200 * time .Millisecond ,
251251 Namespace : s .namespace ,
252252 Replicas : replicas ,
0 commit comments