Skip to content

Commit

Permalink
feat: remove disaster recovery integration
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Dec 12, 2024
1 parent 6d483c1 commit fa2ce0d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ nav_order: 1

## [MAJOR.MINOR.PATCH] - YYYY-MM-DD

- Add `disaster_recovery` service integration type support
- Add `alloydbomni` BETA resource and datasource
- Add `aiven_alloydbomni_user` BETA resource and datasource
- Add `aiven_alloydbomni_database` BETA resource and datasource
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Optional:

Required:

- `integration_type` (String) Type of the service integration. The possible values are `read_replica` and `disaster_recovery`.
- `integration_type` (String) Type of the service integration. The possible value is `read_replica`.
- `source_service_name` (String) Name of the source service


Expand Down
4 changes: 0 additions & 4 deletions internal/schemautil/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ func getBootstrapIntegrationTypes(kind string) []service.IntegrationType {
list = append(list, service.IntegrationTypeReadReplica)
}

if kind == ServiceTypePG {
list = append(list, service.IntegrationTypeDisasterRecovery)
}

return list
}

Expand Down
4 changes: 1 addition & 3 deletions internal/schemautil/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ func backupsReady(s *service.ServiceGetOut) bool {
// See https://github.com/aiven/terraform-provider-aiven/pull/172
for _, i := range s.ServiceIntegrations {
switch i.IntegrationType {
case service.IntegrationTypeReadReplica, service.IntegrationTypeDisasterRecovery:
// fixme: disaster recovery will have a backup eventually,
// remove this when BE is ready
case service.IntegrationTypeReadReplica:
if lo.FromPtr(i.DestService) == s.ServiceName {
return true
}
Expand Down
1 change: 1 addition & 0 deletions internal/sdkprovider/service/pg/pg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ func testAccCheckAivenServicePGAttributes(n string) resource.TestCheckFunc {
}

func TestAccAivenServicePG_disaster_recovery(t *testing.T) {
t.Skip("the feature is disabled")
primaryName := "aiven_pg.primary"
secondaryName := "aiven_pg.secondary"
projectName := os.Getenv("AIVEN_PROJECT_NAME")
Expand Down

0 comments on commit fa2ce0d

Please sign in to comment.