Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/samples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exec_adc_timeout: 15s # The timeout for the ADC to execute.
# The default value is 15 seconds.

provider:
type: "apisix-standalone"
type: "apisix"

sync_period: 0s
# The period between two consecutive syncs.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NewDefaultConfig() *Config {
LeaderElection: NewLeaderElection(),
ExecADCTimeout: types.TimeDuration{Duration: 15 * time.Second},
ProviderConfig: ProviderConfig{
Type: ProviderTypeStandalone,
Type: ProviderTypeAPISIX,
SyncPeriod: types.TimeDuration{Duration: 0},
InitSyncDelay: types.TimeDuration{Duration: 20 * time.Minute},
},
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/apisix_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

var (
ProviderType = cmp.Or(os.Getenv("PROVIDER_TYPE"), "apisix-standalone")
ProviderType = cmp.Or(os.Getenv("PROVIDER_TYPE"), "apisix")
)

var (
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/manifests/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ data:

leader_election_id: "apisix-ingress-controller-leader"
provider:
type: {{ .ProviderType | default "apisix-standalone" }}
type: {{ .ProviderType | default "apisix" }}
sync_period: {{ .ProviderSyncPeriod | default "0s" }}
# The period between two consecutive syncs.
# The default value is 0 seconds, which means the controller will not sync.
Expand Down
4 changes: 0 additions & 4 deletions test/e2e/scaffold/adc.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (

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

// DataplaneResource defines the interface for accessing dataplane resources
Expand Down Expand Up @@ -136,9 +135,6 @@ func (a *adcDataplaneResource) dumpResources(ctx context.Context) (*translator.T
"ADC_SERVER=" + a.serverAddr,
"ADC_TOKEN=" + a.token,
}
if framework.ProviderType != "" {
adcEnv = append(adcEnv, "ADC_BACKEND="+framework.ProviderType)
}

var stdout, stderr bytes.Buffer
cmd := exec.CommandContext(ctxWithTimeout, "adc", args...)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/scaffold/apisix_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (s *APISIXDeployer) GetAdminEndpoint(svc ...*corev1.Service) string {

func (s *APISIXDeployer) DefaultDataplaneResource() DataplaneResource {
return newADCDataplaneResource(
"apisix-standalone",
framework.ProviderType,
fmt.Sprintf("http://%s", s.adminTunnel.Endpoint()),
s.AdminKey(),
false, // tlsVerify
Expand Down
Loading