diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d2bb773f..e24024da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/docs/resources/redis.md b/docs/resources/redis.md index 4147ef207..d7501f62f 100644 --- a/docs/resources/redis.md +++ b/docs/resources/redis.md @@ -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 diff --git a/docs/resources/valkey.md b/docs/resources/valkey.md index 6053d9bbb..fc81b249b 100644 --- a/docs/resources/valkey.md +++ b/docs/resources/valkey.md @@ -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 diff --git a/internal/schemautil/service.go b/internal/schemautil/service.go index fea3a6fe5..b53823b60 100644 --- a/internal/schemautil/service.go +++ b/internal/schemautil/service.go @@ -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) }