Skip to content

Commit

Permalink
fix: enable read_replica for various service types
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Jan 27, 2025
1 parent f1091b6 commit 2ab3cc0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nav_order: 1

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

- Enable `read_replica` service integration for various service types
- Add `disaster_recovery` service integration type support
- Add `aiven_flink_jar_application`, `aiven_flink_jar_application_version` and `aiven_flink_jar_application_deployment` BETA resources
- Change `aiven_account_team_project` field `team_type` (enum): add `organization:networking:read`, `organization:networking:write`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Optional:

Required:

- `integration_type` (String) Type of the service integration
- `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
2 changes: 1 addition & 1 deletion docs/resources/valkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "aiven_valkey" "example_valkey" {

Required:

- `integration_type` (String) Type of the service integration
- `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
3 changes: 2 additions & 1 deletion internal/schemautil/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ func ServiceCommonSchemaWithUserConfig(kind string) map[string]*schema.Schema {
// getBootstrapIntegrationTypes returns the integration types that are allowed to be set when creating a service.
func getBootstrapIntegrationTypes(kind string) []service.IntegrationType {
list := make([]service.IntegrationType, 0)

switch kind {
case ServiceTypeMySQL, ServiceTypePG, ServiceTypeAlloyDBOmni:
case ServiceTypeMySQL, ServiceTypePG, ServiceTypeAlloyDBOmni, ServiceTypeRedis, ServiceTypeValkey:
list = append(list, service.IntegrationTypeReadReplica)
}

Expand Down

0 comments on commit 2ab3cc0

Please sign in to comment.