From 80a8a4af8c239fb3cea7e42d12d5867b73a81c2e Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Tue, 28 Jan 2025 18:34:21 +0100 Subject: [PATCH] chore(release): v4.34.0 --- CHANGELOG.md | 5 +++-- docs/data-sources/account_team_project.md | 2 +- docs/data-sources/connection_pool.md | 2 +- docs/data-sources/mysql_user.md | 2 +- docs/data-sources/opensearch_acl_rule.md | 2 +- docs/data-sources/service_component.md | 2 +- docs/data-sources/valkey.md | 1 + docs/resources/account_team_project.md | 2 +- docs/resources/connection_pool.md | 2 +- docs/resources/kafka_topic.md | 6 +++--- docs/resources/mysql_user.md | 2 +- docs/resources/opensearch_acl_rule.md | 2 +- docs/resources/organization_group_project.md | 2 +- docs/resources/organization_permission.md | 2 +- docs/resources/valkey.md | 1 + go.mod | 6 +++--- go.sum | 8 ++++---- internal/sdkprovider/userconfig/service/valkey.go | 5 +++++ mocks/client.go | 2 +- mocks/resourcedata.go | 2 +- 20 files changed, 33 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f97c5f088..284860a97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ nav_order: 1 -## [MAJOR.MINOR.PATCH] - YYYY-MM-DD +## [4.34.0] - 2025-01-29 -- Fix `pg_user`: throws an error when the password is modified directly in the service +- Fix `pg_user`: throws an error when the password is modified directly in the service - Enable `read_replica` service integration for `aiven_redis` and `aiven_valkey` resources - 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 @@ -22,6 +22,7 @@ nav_order: 1 - Change `aiven_project_user` field `member_type` (enum): add `organization:networking:read`, `organization:networking:write` - Change `aiven_service_integration_endpoint` field `endpoint_type` (enum): add `external_azure_blob_storage` - Replaced `aiven-go-client/v2` with `aiven/go-client-codegen` in `project_user` resource/data source +- Add `aiven_valkey` field `valkey_user_config.frequent_snapshots`: When enabled, Valkey will create frequent local RDB snapshots ## [4.33.0] - 2025-01-16 diff --git a/docs/data-sources/account_team_project.md b/docs/data-sources/account_team_project.md index 95425f76c..a92f71331 100644 --- a/docs/data-sources/account_team_project.md +++ b/docs/data-sources/account_team_project.md @@ -32,4 +32,4 @@ data "aiven_account_team_project" "account_team_project1" { ### Read-Only - `id` (String) The ID of this resource. -- `team_type` (String) The Account team project type. The possible values are `admin`, `operator`, `developer`, `read_only`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `service:configuration:write`, `service:logs:read`, `project:services:read`, `project:services:write`, `project:audit_logs:read`, `service:data:write`, `service:secrets:read`, `service:users:write`, `role:services:maintenance`, `role:services:recover`, `organization:audit_logs:read`, `organization:projects:write`, `organization:users:write`, `organization:app_users:write`, `organization:groups:write`, `organization:idps:write`, `organization:domains:write`, `organization:networking:read`, `organization:networking:write` and `role:organization:admin`. +- `team_type` (String) The Account team project type. The possible values are `admin`, `developer`, `operator`, `organization:app_users:write`, `organization:audit_logs:read`, `organization:domains:write`, `organization:groups:write`, `organization:idps:write`, `organization:networking:read`, `organization:networking:write`, `organization:projects:write`, `organization:users:write`, `project:audit_logs:read`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `project:services:read`, `project:services:write`, `read_only`, `role:organization:admin`, `role:services:maintenance`, `role:services:recover`, `service:configuration:write`, `service:data:write`, `service:logs:read`, `service:secrets:read` and `service:users:write`. diff --git a/docs/data-sources/connection_pool.md b/docs/data-sources/connection_pool.md index e556fa21a..7a04b97ec 100644 --- a/docs/data-sources/connection_pool.md +++ b/docs/data-sources/connection_pool.md @@ -34,6 +34,6 @@ data "aiven_connection_pool" "main" { - `connection_uri` (String, Sensitive) The URI for connecting to the pool. - `database_name` (String) The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `id` (String) The ID of this resource. -- `pool_mode` (String) The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`. +- `pool_mode` (String) The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. - `pool_size` (Number) The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`. - `username` (String) The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference. diff --git a/docs/data-sources/mysql_user.md b/docs/data-sources/mysql_user.md index ccc4e4389..317f6dbf1 100644 --- a/docs/data-sources/mysql_user.md +++ b/docs/data-sources/mysql_user.md @@ -33,7 +33,7 @@ data "aiven_mysql_user" "user" { - `access_cert` (String, Sensitive) Access certificate for the user - `access_key` (String, Sensitive) Access certificate key for the user -- `authentication` (String) Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`. +- `authentication` (String) Authentication details. The possible values are `caching_sha2_password`, `mysql_native_password` and `null`. - `id` (String) The ID of this resource. - `password` (String, Sensitive) The password of the MySQL User ( not applicable for all services ). - `type` (String) Type of the user account. Tells whether the user is the primary account or a regular account. diff --git a/docs/data-sources/opensearch_acl_rule.md b/docs/data-sources/opensearch_acl_rule.md index 63425d225..a5847df19 100644 --- a/docs/data-sources/opensearch_acl_rule.md +++ b/docs/data-sources/opensearch_acl_rule.md @@ -27,7 +27,7 @@ data "aiven_opensearch_acl_rule" "os_acl_rule" { ### Required - `index` (String) The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource. -- `permission` (String) The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`. +- `permission` (String) The permissions for this ACL entry. The possible values are `admin`, `deny`, `read`, `readwrite` and `write`. - `project` (String) The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `service_name` (String) The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `username` (String) The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. diff --git a/docs/data-sources/service_component.md b/docs/data-sources/service_component.md index 03bcb9c67..e9506cf65 100644 --- a/docs/data-sources/service_component.md +++ b/docs/data-sources/service_component.md @@ -30,7 +30,7 @@ data "aiven_service_component" "sc1" { ### Optional - `kafka_authentication_method` (String) Kafka authentication method. This is a value specific to the 'kafka' service component. The possible values are `certificate` and `sasl`. -- `route` (String) Network access route. The possible values are `dynamic`, `public`, `private` and `privatelink`. +- `route` (String) Network access route. The possible values are `dynamic`, `private`, `privatelink` and `public`. - `service_name` (String) Service name - `ssl` (Boolean) Whether the endpoint is encrypted or accepts plaintext. By default endpoints are always encrypted and this property is only included for service components that may disable encryption - `usage` (String) DNS usage name. The possible values are `disaster_recovery`, `primary` and `replica`. diff --git a/docs/data-sources/valkey.md b/docs/data-sources/valkey.md index e1b4060eb..50a54ef5d 100644 --- a/docs/data-sources/valkey.md +++ b/docs/data-sources/valkey.md @@ -117,6 +117,7 @@ Read-Only: - `additional_backup_regions` (List of String) - `backup_hour` (Number) - `backup_minute` (Number) +- `frequent_snapshots` (Boolean) - `ip_filter` (Set of String) - `ip_filter_object` (Set of Object) (see [below for nested schema](#nestedobjatt--valkey_user_config--ip_filter_object)) - `ip_filter_string` (Set of String) diff --git a/docs/resources/account_team_project.md b/docs/resources/account_team_project.md index 303bd5c22..689b9a867 100644 --- a/docs/resources/account_team_project.md +++ b/docs/resources/account_team_project.md @@ -48,7 +48,7 @@ resource "aiven_account_team_project" "main" { ### Optional - `project_name` (String) The name of an already existing project -- `team_type` (String) The Account team project type. The possible values are `admin`, `operator`, `developer`, `read_only`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `service:configuration:write`, `service:logs:read`, `project:services:read`, `project:services:write`, `project:audit_logs:read`, `service:data:write`, `service:secrets:read`, `service:users:write`, `role:services:maintenance`, `role:services:recover`, `organization:audit_logs:read`, `organization:projects:write`, `organization:users:write`, `organization:app_users:write`, `organization:groups:write`, `organization:idps:write`, `organization:domains:write`, `organization:networking:read`, `organization:networking:write` and `role:organization:admin`. +- `team_type` (String) The Account team project type. The possible values are `admin`, `developer`, `operator`, `organization:app_users:write`, `organization:audit_logs:read`, `organization:domains:write`, `organization:groups:write`, `organization:idps:write`, `organization:networking:read`, `organization:networking:write`, `organization:projects:write`, `organization:users:write`, `project:audit_logs:read`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `project:services:read`, `project:services:write`, `read_only`, `role:organization:admin`, `role:services:maintenance`, `role:services:recover`, `service:configuration:write`, `service:data:write`, `service:logs:read`, `service:secrets:read` and `service:users:write`. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only diff --git a/docs/resources/connection_pool.md b/docs/resources/connection_pool.md index b0bab69f8..73b07d70e 100644 --- a/docs/resources/connection_pool.md +++ b/docs/resources/connection_pool.md @@ -36,7 +36,7 @@ resource "aiven_connection_pool" "main" { ### Optional -- `pool_mode` (String) The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`. +- `pool_mode` (String) The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. - `pool_size` (Number) The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `username` (String) The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference. diff --git a/docs/resources/kafka_topic.md b/docs/resources/kafka_topic.md index e2cb053cd..18184e279 100644 --- a/docs/resources/kafka_topic.md +++ b/docs/resources/kafka_topic.md @@ -64,8 +64,8 @@ resource "aiven_kafka_topic" "example_topic" { Optional: -- `cleanup_policy` (String) cleanup.policy value. The possible values are `delete`, `compact` and `compact,delete`. -- `compression_type` (String) compression.type value. The possible values are `snappy`, `gzip`, `lz4`, `producer`, `uncompressed` and `zstd`. +- `cleanup_policy` (String) cleanup.policy value. The possible values are `compact`, `compact,delete` and `delete`. +- `compression_type` (String) compression.type value. The possible values are `gzip`, `lz4`, `producer`, `snappy`, `uncompressed` and `zstd`. - `delete_retention_ms` (String) delete.retention.ms value - `file_delete_delay_ms` (String) file.delete.delay.ms value - `flush_messages` (String) flush.messages value @@ -76,7 +76,7 @@ Optional: - `max_compaction_lag_ms` (String) max.compaction.lag.ms value - `max_message_bytes` (String) max.message.bytes value - `message_downconversion_enable` (Boolean) message.downconversion.enable value -- `message_format_version` (String) message.format.version value. The possible values are `0.8.0`, `0.8.1`, `0.8.2`, `0.9.0`, `0.10.0`, `0.10.0-IV0`, `0.10.0-IV1`, `0.10.1`, `0.10.1-IV0`, `0.10.1-IV1`, `0.10.1-IV2`, `0.10.2`, `0.10.2-IV0`, `0.11.0`, `0.11.0-IV0`, `0.11.0-IV1`, `0.11.0-IV2`, `1.0`, `1.0-IV0`, `1.1`, `1.1-IV0`, `2.0`, `2.0-IV0`, `2.0-IV1`, `2.1`, `2.1-IV0`, `2.1-IV1`, `2.1-IV2`, `2.2`, `2.2-IV0`, `2.2-IV1`, `2.3`, `2.3-IV0`, `2.3-IV1`, `2.4`, `2.4-IV0`, `2.4-IV1`, `2.5`, `2.5-IV0`, `2.6`, `2.6-IV0`, `2.7`, `2.7-IV0`, `2.7-IV1`, `2.7-IV2`, `2.8`, `2.8-IV0`, `2.8-IV1`, `3.0`, `3.0-IV0`, `3.0-IV1`, `3.1`, `3.1-IV0`, `3.2`, `3.2-IV0`, `3.3`, `3.3-IV0`, `3.3-IV1`, `3.3-IV2`, `3.3-IV3`, `3.4`, `3.4-IV0`, `3.5`, `3.5-IV0`, `3.5-IV1`, `3.5-IV2`, `3.6`, `3.6-IV0`, `3.6-IV1`, `3.6-IV2`, `3.7`, `3.7-IV0`, `3.7-IV1`, `3.7-IV2`, `3.7-IV3`, `3.7-IV4`, `3.8`, `3.8-IV0`, `3.9`, `3.9-IV0` and `3.9-IV1`. +- `message_format_version` (String) message.format.version value. The possible values are `0.10.0`, `0.10.0-IV0`, `0.10.0-IV1`, `0.10.1`, `0.10.1-IV0`, `0.10.1-IV1`, `0.10.1-IV2`, `0.10.2`, `0.10.2-IV0`, `0.11.0`, `0.11.0-IV0`, `0.11.0-IV1`, `0.11.0-IV2`, `0.8.0`, `0.8.1`, `0.8.2`, `0.9.0`, `1.0`, `1.0-IV0`, `1.1`, `1.1-IV0`, `2.0`, `2.0-IV0`, `2.0-IV1`, `2.1`, `2.1-IV0`, `2.1-IV1`, `2.1-IV2`, `2.2`, `2.2-IV0`, `2.2-IV1`, `2.3`, `2.3-IV0`, `2.3-IV1`, `2.4`, `2.4-IV0`, `2.4-IV1`, `2.5`, `2.5-IV0`, `2.6`, `2.6-IV0`, `2.7`, `2.7-IV0`, `2.7-IV1`, `2.7-IV2`, `2.8`, `2.8-IV0`, `2.8-IV1`, `3.0`, `3.0-IV0`, `3.0-IV1`, `3.1`, `3.1-IV0`, `3.2`, `3.2-IV0`, `3.3`, `3.3-IV0`, `3.3-IV1`, `3.3-IV2`, `3.3-IV3`, `3.4`, `3.4-IV0`, `3.5`, `3.5-IV0`, `3.5-IV1`, `3.5-IV2`, `3.6`, `3.6-IV0`, `3.6-IV1`, `3.6-IV2`, `3.7`, `3.7-IV0`, `3.7-IV1`, `3.7-IV2`, `3.7-IV3`, `3.7-IV4`, `3.8`, `3.8-IV0`, `3.9`, `3.9-IV0` and `3.9-IV1`. - `message_timestamp_difference_max_ms` (String) message.timestamp.difference.max.ms value - `message_timestamp_type` (String) message.timestamp.type value. The possible values are `CreateTime` and `LogAppendTime`. - `min_cleanable_dirty_ratio` (Number) min.cleanable.dirty.ratio value diff --git a/docs/resources/mysql_user.md b/docs/resources/mysql_user.md index 0e826241f..f1f8b0b9c 100644 --- a/docs/resources/mysql_user.md +++ b/docs/resources/mysql_user.md @@ -32,7 +32,7 @@ resource "aiven_mysql_user" "foo" { ### Optional -- `authentication` (String) Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`. +- `authentication` (String) Authentication details. The possible values are `caching_sha2_password`, `mysql_native_password` and `null`. - `password` (String, Sensitive) The password of the MySQL User ( not applicable for all services ). - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) diff --git a/docs/resources/opensearch_acl_rule.md b/docs/resources/opensearch_acl_rule.md index 22021faa7..2d48c3511 100644 --- a/docs/resources/opensearch_acl_rule.md +++ b/docs/resources/opensearch_acl_rule.md @@ -79,7 +79,7 @@ resource "aiven_opensearch_acl_rule" "os_acl_rule" { ### Required - `index` (String) The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource. -- `permission` (String) The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`. +- `permission` (String) The permissions for this ACL entry. The possible values are `admin`, `deny`, `read`, `readwrite` and `write`. - `project` (String) The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `service_name` (String) The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `username` (String) The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. diff --git a/docs/resources/organization_group_project.md b/docs/resources/organization_group_project.md index 1995a53e9..122b661df 100644 --- a/docs/resources/organization_group_project.md +++ b/docs/resources/organization_group_project.md @@ -51,7 +51,7 @@ resource "aiven_organization_group_project" "example" { - `group_id` (String) The ID of the user group. - `project` (String) The project that the users in the group are members of. -- `role` (String) [Project-level role](https://aiven.io/docs/platform/reference/project-member-privileges) assigned to all users in the group. The possible values are `admin`, `operator`, `developer`, `read_only`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `service:configuration:write`, `service:logs:read`, `project:services:read`, `project:services:write`, `project:audit_logs:read`, `service:data:write`, `service:secrets:read`, `service:users:write`, `role:services:maintenance`, `role:services:recover`, `organization:audit_logs:read`, `organization:projects:write`, `organization:users:write`, `organization:app_users:write`, `organization:groups:write`, `organization:idps:write`, `organization:domains:write`, `organization:networking:read`, `organization:networking:write` and `role:organization:admin`. +- `role` (String) [Project-level role](https://aiven.io/docs/platform/reference/project-member-privileges) assigned to all users in the group. The possible values are `admin`, `developer`, `operator`, `organization:app_users:write`, `organization:audit_logs:read`, `organization:domains:write`, `organization:groups:write`, `organization:idps:write`, `organization:networking:read`, `organization:networking:write`, `organization:projects:write`, `organization:users:write`, `project:audit_logs:read`, `project:integrations:read`, `project:integrations:write`, `project:networking:read`, `project:networking:write`, `project:permissions:read`, `project:services:read`, `project:services:write`, `read_only`, `role:organization:admin`, `role:services:maintenance`, `role:services:recover`, `service:configuration:write`, `service:data:write`, `service:logs:read`, `service:secrets:read` and `service:users:write`. ### Optional diff --git a/docs/resources/organization_permission.md b/docs/resources/organization_permission.md index 0b49c9de1..5c5ffbcf6 100644 --- a/docs/resources/organization_permission.md +++ b/docs/resources/organization_permission.md @@ -80,7 +80,7 @@ resource "aiven_organization_permission" "example_org_permissions" { - `organization_id` (String) Organization ID. - `permissions` (Block Set, Min: 1) Permissions to grant to principals. (see [below for nested schema](#nestedblock--permissions)) - `resource_id` (String) Resource ID. -- `resource_type` (String) Resource type. The possible values are `project`, `organization` and `organization_unit`. +- `resource_type` (String) Resource type. The possible values are `organization`, `organization_unit` and `project`. ### Optional diff --git a/docs/resources/valkey.md b/docs/resources/valkey.md index fc81b249b..82292e422 100644 --- a/docs/resources/valkey.md +++ b/docs/resources/valkey.md @@ -127,6 +127,7 @@ Optional: - `additional_backup_regions` (List of String) Additional Cloud Regions for Backup Replication. - `backup_hour` (Number) The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed. Example: `3`. - `backup_minute` (Number) The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed. Example: `30`. +- `frequent_snapshots` (Boolean) When enabled, Valkey will create frequent local RDB snapshots. When disabled, Valkey will only take RDB snapshots when a backup is created, based on the backup schedule. This setting is ignored when `valkey_persistence` is set to `off`. Default: `true`. - `ip_filter` (Set of String, Deprecated) Allow incoming connections from CIDR address block, e.g. `10.20.0.0/16`. - `ip_filter_object` (Block Set, Max: 2048) Allow incoming connections from CIDR address block, e.g. `10.20.0.0/16` (see [below for nested schema](#nestedblock--valkey_user_config--ip_filter_object)) - `ip_filter_string` (Set of String) Allow incoming connections from CIDR address block, e.g. `10.20.0.0/16`. diff --git a/go.mod b/go.mod index c8f095d01..be033edbf 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.23 require ( github.com/aiven/aiven-go-client/v2 v2.34.0 - github.com/aiven/go-client-codegen v0.79.0 + github.com/aiven/go-client-codegen v0.81.0 github.com/avast/retry-go v3.0.0+incompatible github.com/dave/jennifer v1.7.1 github.com/docker/go-units v0.5.0 @@ -18,6 +18,7 @@ require ( github.com/hashicorp/terraform-plugin-mux v0.18.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 github.com/kelseyhightower/envconfig v1.4.0 + github.com/rs/zerolog v1.33.0 github.com/samber/lo v1.49.0 github.com/stoewer/go-strcase v1.3.0 github.com/stretchr/testify v1.10.0 @@ -37,7 +38,6 @@ require ( github.com/json-iterator/go v1.1.12 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/rs/zerolog v1.33.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect @@ -49,7 +49,7 @@ require ( require ( github.com/agext/levenshtein v1.2.3 // indirect - github.com/aiven/go-api-schemas v1.111.0 + github.com/aiven/go-api-schemas v1.112.0 github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.16.0 // indirect diff --git a/go.sum b/go.sum index cea7ff9b8..77156775d 100644 --- a/go.sum +++ b/go.sum @@ -8,10 +8,10 @@ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7l github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/aiven/aiven-go-client/v2 v2.34.0 h1:Iq3GZVoqrAPb4XcA3pJVL8MpRtiXep+LYA7y6aoi5xQ= github.com/aiven/aiven-go-client/v2 v2.34.0/go.mod h1:qXBgER0dtjJa1V3l7kzpizuAGjFCkgahhHL5OpoM2ZM= -github.com/aiven/go-api-schemas v1.111.0 h1:6NhJsqg/jESa5zTUrhwNJg/16w2lPYD4RBvStPwnm8k= -github.com/aiven/go-api-schemas v1.111.0/go.mod h1:z7dGvufm6If4gOdVr7dWTuFZmll9FOZr5Z5CSxGpebA= -github.com/aiven/go-client-codegen v0.79.0 h1:qzFBhpcJDHBOdtUXC+0nKPIuefUTs9IvHmRxT+MrReo= -github.com/aiven/go-client-codegen v0.79.0/go.mod h1:QKN/GgLMGWd6+gPEucXlZPi5vC3C6RpD3UeBRQOLI1Y= +github.com/aiven/go-api-schemas v1.112.0 h1:Ab7mrYS84CS2G1YAnfeH8qecvjKMN6pTl3oHlCH6gV8= +github.com/aiven/go-api-schemas v1.112.0/go.mod h1:z7dGvufm6If4gOdVr7dWTuFZmll9FOZr5Z5CSxGpebA= +github.com/aiven/go-client-codegen v0.81.0 h1:TyAsYnmInX5n1JdcfzAYXRsgCCLLtt6tKxMSXtOkVHM= +github.com/aiven/go-client-codegen v0.81.0/go.mod h1:QKN/GgLMGWd6+gPEucXlZPi5vC3C6RpD3UeBRQOLI1Y= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= diff --git a/internal/sdkprovider/userconfig/service/valkey.go b/internal/sdkprovider/userconfig/service/valkey.go index e3b177d16..13926cd89 100644 --- a/internal/sdkprovider/userconfig/service/valkey.go +++ b/internal/sdkprovider/userconfig/service/valkey.go @@ -34,6 +34,11 @@ func valkeyUserConfig() *schema.Schema { Optional: true, Type: schema.TypeInt, }, + "frequent_snapshots": { + Description: "When enabled, Valkey will create frequent local RDB snapshots. When disabled, Valkey will only take RDB snapshots when a backup is created, based on the backup schedule. This setting is ignored when `valkey_persistence` is set to `off`. Default: `true`.", + Optional: true, + Type: schema.TypeBool, + }, "ip_filter": { Deprecated: "Deprecated. Use `ip_filter_string` instead.", Description: "Allow incoming connections from CIDR address block, e.g. `10.20.0.0/16`.", diff --git a/mocks/client.go b/mocks/client.go index f4fa9c532..e78e19a94 100644 --- a/mocks/client.go +++ b/mocks/client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.51.0. DO NOT EDIT. +// Code generated by mockery v2.51.1. DO NOT EDIT. package mocks diff --git a/mocks/resourcedata.go b/mocks/resourcedata.go index 8faf352b0..6a90fd004 100644 --- a/mocks/resourcedata.go +++ b/mocks/resourcedata.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.51.0. DO NOT EDIT. +// Code generated by mockery v2.51.1. DO NOT EDIT. package mocks