@@ -14,7 +14,6 @@ package scaffold
1414
1515import (
1616 "bytes"
17- "cmp"
1817 "fmt"
1918 "os"
2019 "time"
@@ -180,7 +179,7 @@ func (s *APISIXDeployer) newAPISIXTunnels(serviceName string) error {
180179
181180func (s * APISIXDeployer ) deployDataplane (opts * APISIXDeployOptions ) * corev1.Service {
182181 if opts .ServiceName == "" {
183- opts .ServiceName = "apisix-standalone"
182+ opts .ServiceName = framework . ProviderType
184183 }
185184
186185 if opts .ServiceHTTPPort == 0 {
@@ -195,7 +194,6 @@ func (s *APISIXDeployer) deployDataplane(opts *APISIXDeployOptions) *corev1.Serv
195194 kubectlOpts := k8s .NewKubectlOptions ("" , "" , opts .Namespace )
196195
197196 if framework .ProviderType == adc .BackendModeAPISIX {
198- opts .ServiceName = "apisix"
199197 opts .ConfigProvider = "etcd"
200198 // deploy etcd
201199 k8s .KubectlApplyFromString (s .GinkgoT , kubectlOpts , framework .EtcdSpec )
@@ -236,7 +234,7 @@ func (s *APISIXDeployer) deployDataplane(opts *APISIXDeployOptions) *corev1.Serv
236234func (s * APISIXDeployer ) DeployIngress () {
237235 s .Framework .DeployIngress (framework.IngressDeployOpts {
238236 ControllerName : s .opts .ControllerName ,
239- ProviderType : cmp . Or ( framework .ProviderType , "apisix-standalone" ) ,
237+ ProviderType : framework .ProviderType ,
240238 ProviderSyncPeriod : 200 * time .Millisecond ,
241239 Namespace : s .namespace ,
242240 Replicas : 1 ,
@@ -246,7 +244,7 @@ func (s *APISIXDeployer) DeployIngress() {
246244func (s * APISIXDeployer ) ScaleIngress (replicas int ) {
247245 s .Framework .DeployIngress (framework.IngressDeployOpts {
248246 ControllerName : s .opts .ControllerName ,
249- ProviderType : cmp . Or ( framework .ProviderType , "apisix-standalone" ) ,
247+ ProviderType : framework .ProviderType ,
250248 ProviderSyncPeriod : 200 * time .Millisecond ,
251249 Namespace : s .namespace ,
252250 Replicas : replicas ,
0 commit comments