Skip to content

Commit

Permalink
refactor(userconfig): new generator for SDKv2
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Feb 6, 2024
1 parent a7918f0 commit 68bc65c
Show file tree
Hide file tree
Showing 72 changed files with 6,651 additions and 304 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ nav_order: 1
<!-- TODO: uncomment when dragonfly is supported -->
<!-- - Dragonfly support -->
- Fix `aiven_kafka_schema` JSON object diff suppress function
- Add new user config generator
- Use `TypeSet` for `ip_filter`, `ip_filter_string`, `namespace_string` fields


## [4.13.3] - 2024-01-29

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ Read-Only:
- `backup_minute` (Number)
- `cassandra` (List of Object) (see [below for nested schema](#nestedobjatt--cassandra_user_config--cassandra))
- `cassandra_version` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--cassandra_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `migrate_sstableloader` (Boolean)
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--cassandra_user_config--private_access))
- `project_to_fork_from` (String)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/clickhouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ Read-Only:
Read-Only:

- `additional_backup_regions` (List of String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--clickhouse_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--clickhouse_user_config--private_access))
- `privatelink_access` (List of Object) (see [below for nested schema](#nestedobjatt--clickhouse_user_config--privatelink_access))
- `project_to_fork_from` (String)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/flink.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Read-Only:

- `additional_backup_regions` (List of String)
- `flink_version` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--flink_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `number_of_task_slots` (Number)
- `privatelink_access` (List of Object) (see [below for nested schema](#nestedobjatt--flink_user_config--privatelink_access))
- `service_log` (Boolean)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ Read-Only:
- `editors_can_admin` (Boolean)
- `external_image_storage` (List of Object) (see [below for nested schema](#nestedobjatt--grafana_user_config--external_image_storage))
- `google_analytics_ua_id` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--grafana_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `metrics_enabled` (Boolean)
- `oauth_allow_insecure_email_lookup` (Boolean)
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--grafana_user_config--private_access))
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Read-Only:
- `additional_backup_regions` (List of String)
- `custom_domain` (String)
- `influxdb` (List of Object) (see [below for nested schema](#nestedobjatt--influxdb_user_config--influxdb))
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--influxdb_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--influxdb_user_config--private_access))
- `privatelink_access` (List of Object) (see [below for nested schema](#nestedobjatt--influxdb_user_config--privatelink_access))
- `project_to_fork_from` (String)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Read-Only:
- `additional_backup_regions` (List of String)
- `aiven_kafka_topic_messages` (Boolean)
- `custom_domain` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `kafka` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_user_config--kafka))
- `kafka_authentication_methods` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_user_config--kafka_authentication_methods))
- `kafka_connect` (Boolean)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/kafka_connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Read-Only:
Read-Only:

- `additional_backup_regions` (List of String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_connect_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `kafka_connect` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_connect_user_config--kafka_connect))
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_connect_user_config--private_access))
- `privatelink_access` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_connect_user_config--privatelink_access))
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/kafka_mirrormaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Read-Only:
Read-Only:

- `additional_backup_regions` (List of String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_mirrormaker_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `kafka_mirrormaker` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_mirrormaker_user_config--kafka_mirrormaker))
- `service_log` (Boolean)
- `static_ips` (Boolean)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/m3aggregator.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Read-Only:
Read-Only:

- `custom_domain` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--m3aggregator_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `m3_version` (String)
- `m3aggregator_version` (String)
- `service_log` (Boolean)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/m3db.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ Read-Only:

- `additional_backup_regions` (List of String)
- `custom_domain` (String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--m3db_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `limits` (List of Object) (see [below for nested schema](#nestedobjatt--m3db_user_config--limits))
- `m3` (List of Object) (see [below for nested schema](#nestedobjatt--m3db_user_config--m3))
- `m3_version` (String)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Read-Only:
- `backup_hour` (Number)
- `backup_minute` (Number)
- `binlog_retention_period` (Number)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--mysql_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `migration` (List of Object) (see [below for nested schema](#nestedobjatt--mysql_user_config--migration))
- `mysql` (List of Object) (see [below for nested schema](#nestedobjatt--mysql_user_config--mysql))
- `mysql_version` (String)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/opensearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Read-Only:
- `disable_replication_factor_adjustment` (Boolean)
- `index_patterns` (List of Object) (see [below for nested schema](#nestedobjatt--opensearch_user_config--index_patterns))
- `index_template` (List of Object) (see [below for nested schema](#nestedobjatt--opensearch_user_config--index_template))
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--opensearch_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `keep_index_refresh_interval` (Boolean)
- `max_index_count` (Number)
- `openid` (List of Object) (see [below for nested schema](#nestedobjatt--opensearch_user_config--openid))
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Read-Only:
- `backup_hour` (Number)
- `backup_minute` (Number)
- `enable_ipv6` (Boolean)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `migration` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--migration))
- `pg` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--pg))
- `pg_qualstats` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--pg_qualstats))
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Read-Only:
Read-Only:

- `additional_backup_regions` (List of String)
- `ip_filter` (List of String)
- `ip_filter` (Set of String)
- `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--redis_user_config--ip_filter_object))
- `ip_filter_string` (List of String)
- `ip_filter_string` (Set of String)
- `migration` (List of Object) (see [below for nested schema](#nestedobjatt--redis_user_config--migration))
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--redis_user_config--private_access))
- `privatelink_access` (List of Object) (see [below for nested schema](#nestedobjatt--redis_user_config--privatelink_access))
Expand Down
14 changes: 7 additions & 7 deletions docs/resources/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ resource "aiven_cassandra" "bar" {

Optional:

- `additional_backup_regions` (List of String) Additional Cloud Regions for Backup Replication.
- `additional_backup_regions` (List of String, Deprecated) 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.
- `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.
- `cassandra` (Block List, Max: 1) cassandra configuration values. (see [below for nested schema](#nestedblock--cassandra_user_config--cassandra))
- `cassandra` (Block List, Max: 1) cassandra configuration values (see [below for nested schema](#nestedblock--cassandra_user_config--cassandra))
- `cassandra_version` (String) Cassandra version.
- `ip_filter` (List of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. (see [below for nested schema](#nestedblock--cassandra_user_config--ip_filter_object))
- `ip_filter_string` (List of String) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter` (Set of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16' (see [below for nested schema](#nestedblock--cassandra_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'.
- `migrate_sstableloader` (Boolean) Sets the service into migration mode enabling the sstableloader utility to be used to upload Cassandra data files. Available only on service create.
- `private_access` (Block List, Max: 1) Allow access to selected service ports from private networks. (see [below for nested schema](#nestedblock--cassandra_user_config--private_access))
- `private_access` (Block List, Max: 1) Allow access to selected service ports from private networks (see [below for nested schema](#nestedblock--cassandra_user_config--private_access))
- `project_to_fork_from` (String) Name of another project to fork a service from. This has effect only when a new service is being created.
- `public_access` (Block List, Max: 1) Allow access to selected service ports from the public Internet. (see [below for nested schema](#nestedblock--cassandra_user_config--public_access))
- `public_access` (Block List, Max: 1) Allow access to selected service ports from the public Internet (see [below for nested schema](#nestedblock--cassandra_user_config--public_access))
- `service_log` (Boolean) Store logs for the service so that they are available in the HTTP API and console.
- `service_to_fork_from` (String) Name of another service to fork from. This has effect only when a new service is being created.
- `service_to_join_with` (String) When bootstrapping, instead of creating a new Cassandra cluster try to join an existing one from another service. Can only be set on service creation.
Expand Down
14 changes: 7 additions & 7 deletions docs/resources/clickhouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ resource "aiven_clickhouse" "clickhouse" {

Optional:

- `additional_backup_regions` (List of String) Additional Cloud Regions for Backup Replication.
- `ip_filter` (List of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. (see [below for nested schema](#nestedblock--clickhouse_user_config--ip_filter_object))
- `ip_filter_string` (List of String) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `private_access` (Block List, Max: 1) Allow access to selected service ports from private networks. (see [below for nested schema](#nestedblock--clickhouse_user_config--private_access))
- `privatelink_access` (Block List, Max: 1) Allow access to selected service components through Privatelink. (see [below for nested schema](#nestedblock--clickhouse_user_config--privatelink_access))
- `additional_backup_regions` (List of String, Deprecated) Additional Cloud Regions for Backup Replication.
- `ip_filter` (Set of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16' (see [below for nested schema](#nestedblock--clickhouse_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'.
- `private_access` (Block List, Max: 1) Allow access to selected service ports from private networks (see [below for nested schema](#nestedblock--clickhouse_user_config--private_access))
- `privatelink_access` (Block List, Max: 1) Allow access to selected service components through Privatelink (see [below for nested schema](#nestedblock--clickhouse_user_config--privatelink_access))
- `project_to_fork_from` (String) Name of another project to fork a service from. This has effect only when a new service is being created.
- `public_access` (Block List, Max: 1) Allow access to selected service ports from the public Internet. (see [below for nested schema](#nestedblock--clickhouse_user_config--public_access))
- `public_access` (Block List, Max: 1) Allow access to selected service ports from the public Internet (see [below for nested schema](#nestedblock--clickhouse_user_config--public_access))
- `service_log` (Boolean) Store logs for the service so that they are available in the HTTP API and console.
- `service_to_fork_from` (String) Name of another service to fork from. This has effect only when a new service is being created.
- `static_ips` (Boolean) Use static public IP addresses.
Expand Down
10 changes: 5 additions & 5 deletions docs/resources/flink.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ Optional:

Optional:

- `additional_backup_regions` (List of String) Additional Cloud Regions for Backup Replication.
- `additional_backup_regions` (List of String, Deprecated) Additional Cloud Regions for Backup Replication.
- `flink_version` (String) Flink major version.
- `ip_filter` (List of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. (see [below for nested schema](#nestedblock--flink_user_config--ip_filter_object))
- `ip_filter_string` (List of String) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter` (Set of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'.
- `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16' (see [below for nested schema](#nestedblock--flink_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'.
- `number_of_task_slots` (Number) Task slots per node. For a 3 node plan, total number of task slots is 3x this value.
- `privatelink_access` (Block List, Max: 1) Allow access to selected service components through Privatelink. (see [below for nested schema](#nestedblock--flink_user_config--privatelink_access))
- `privatelink_access` (Block List, Max: 1) Allow access to selected service components through Privatelink (see [below for nested schema](#nestedblock--flink_user_config--privatelink_access))
- `service_log` (Boolean) Store logs for the service so that they are available in the HTTP API and console.
- `static_ips` (Boolean) Use static public IP addresses.

Expand Down
Loading

0 comments on commit 68bc65c

Please sign in to comment.