From 91cfc208b5f358faf9e446710b411c62eef8fa32 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Fri, 3 Mar 2023 15:15:47 +0100 Subject: [PATCH] release: v0.9.0 (#22) --- CHANGELOG.md | 3 + charts/aiven-operator-crds/Chart.yaml | 4 +- .../templates/aiven.io_cassandras.yaml | 8 +- .../templates/aiven.io_clickhouses.yaml | 8 +- .../templates/aiven.io_clickhouseusers.yaml | 6 +- .../templates/aiven.io_connectionpools.yaml | 6 +- .../templates/aiven.io_databases.yaml | 3 + .../templates/aiven.io_grafanas.yaml | 8 +- .../templates/aiven.io_kafkaacls.yaml | 3 + .../templates/aiven.io_kafkaconnectors.yaml | 3 + .../templates/aiven.io_kafkaconnects.yaml | 7 +- .../templates/aiven.io_kafkas.yaml | 8 +- .../templates/aiven.io_kafkaschemas.yaml | 3 + .../templates/aiven.io_kafkatopics.yaml | 13 + .../templates/aiven.io_mysqls.yaml | 8 +- .../templates/aiven.io_opensearches.yaml | 8 +- .../templates/aiven.io_postgresqls.yaml | 8 +- .../templates/aiven.io_projects.yaml | 6 +- .../templates/aiven.io_projectvpcs.yaml | 3 + .../templates/aiven.io_redis.yaml | 8 +- .../aiven.io_serviceintegrations.yaml | 366 +++++++++++++++++- .../templates/aiven.io_serviceusers.yaml | 6 +- charts/aiven-operator/Chart.yaml | 4 +- 23 files changed, 472 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bf0324..8264c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## [MAJOR.MINOR.PATCH] - YYYY-MM-DD +## aiven-operator-v0.9.0 - 2023-03-03 +* sync with aiven-operator v0.9.0 + ## aiven-operator-v0.8.1 - 2023-02-24 * fix ClusterRole template diff --git a/charts/aiven-operator-crds/Chart.yaml b/charts/aiven-operator-crds/Chart.yaml index 5ec9f5c..ff90c73 100644 --- a/charts/aiven-operator-crds/Chart.yaml +++ b/charts/aiven-operator-crds/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: aiven-operator-crds description: A Helm chart to deploy the aiven operator custom resource definitions type: application -version: v0.8.0 -appVersion: v0.8.0 +version: v0.9.0 +appVersion: v0.9.0 maintainers: - name: mhoffm-aiven url: https://www.aiven.io diff --git a/charts/aiven-operator-crds/templates/aiven.io_cassandras.yaml b/charts/aiven-operator-crds/templates/aiven.io_cassandras.yaml index bed5d2e..d5434f9 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_cassandras.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_cassandras.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -66,7 +69,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -130,6 +134,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_clickhouses.yaml b/charts/aiven-operator-crds/templates/aiven.io_clickhouses.yaml index 95cbffd..274e3d4 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_clickhouses.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_clickhouses.yaml @@ -44,6 +44,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -53,7 +56,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -117,6 +121,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_clickhouseusers.yaml b/charts/aiven-operator-crds/templates/aiven.io_clickhouseusers.yaml index 4a0a7d4..4647bd3 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_clickhouseusers.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_clickhouseusers.yaml @@ -54,6 +54,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object authentication: description: Authentication details @@ -65,7 +68,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name diff --git a/charts/aiven-operator-crds/templates/aiven.io_connectionpools.yaml b/charts/aiven-operator-crds/templates/aiven.io_connectionpools.yaml index f731db0..13eb35c 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_connectionpools.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_connectionpools.yaml @@ -63,12 +63,16 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object connInfoSecretTarget: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name diff --git a/charts/aiven-operator-crds/templates/aiven.io_databases.yaml b/charts/aiven-operator-crds/templates/aiven.io_databases.yaml index fec422a..3f97d99 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_databases.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_databases.yaml @@ -51,6 +51,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object lcCollate: description: 'Default string sort order (LC_COLLATE) of the database. diff --git a/charts/aiven-operator-crds/templates/aiven.io_grafanas.yaml b/charts/aiven-operator-crds/templates/aiven.io_grafanas.yaml index 5978cc2..7d07c90 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_grafanas.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_grafanas.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -66,7 +69,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -130,6 +134,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkaacls.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkaacls.yaml index a817015..86646d1 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkaacls.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkaacls.yaml @@ -60,6 +60,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object permission: description: Kafka permission to grant (admin, read, readwrite, write) diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkaconnectors.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkaconnectors.yaml index c41718d..87523d1 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkaconnectors.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkaconnectors.yaml @@ -63,6 +63,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object connectorClass: description: The Java class of the connector. diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkaconnects.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkaconnects.yaml index f092a93..4372c6a 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkaconnects.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkaconnects.yaml @@ -48,6 +48,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -106,6 +109,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation @@ -138,7 +143,7 @@ spec: to have this enabled for all services. type: boolean userConfig: - description: PostgreSQL specific user configuration options + description: KafkaConnect specific user configuration options properties: additional_backup_regions: description: Additional Cloud Regions for Backup Replication diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkas.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkas.yaml index 6aa671f..61b8110 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkas.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkas.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -66,7 +69,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -134,6 +138,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkaschemas.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkaschemas.yaml index 464d566..cd6948f 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkaschemas.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkaschemas.yaml @@ -60,6 +60,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object compatibilityLevel: description: Kafka Schemas compatibility level diff --git a/charts/aiven-operator-crds/templates/aiven.io_kafkatopics.yaml b/charts/aiven-operator-crds/templates/aiven.io_kafkatopics.yaml index 0fb7d08..f8bc1bc 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_kafkatopics.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_kafkatopics.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object config: description: Kafka topic configuration @@ -191,6 +194,16 @@ spec: to enable this for any production databases containing critical data. type: boolean + topicName: + description: Topic name. If provided, is used instead of metadata.name. + This field supports additional characters, has a longer length, + and will replace metadata.name in future releases + maxLength: 249 + minLength: 1 + type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf required: - partitions - project diff --git a/charts/aiven-operator-crds/templates/aiven.io_mysqls.yaml b/charts/aiven-operator-crds/templates/aiven.io_mysqls.yaml index f59f23a..4219b78 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_mysqls.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_mysqls.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -66,7 +69,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -130,6 +134,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_opensearches.yaml b/charts/aiven-operator-crds/templates/aiven.io_opensearches.yaml index 279e70c..e493927 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_opensearches.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_opensearches.yaml @@ -44,6 +44,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -53,7 +56,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -117,6 +121,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_postgresqls.yaml b/charts/aiven-operator-crds/templates/aiven.io_postgresqls.yaml index 731616f..77dd977 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_postgresqls.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_postgresqls.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -66,7 +69,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -130,6 +134,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_projects.yaml b/charts/aiven-operator-crds/templates/aiven.io_projects.yaml index ec81f7c..7c40649 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_projects.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_projects.yaml @@ -48,6 +48,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object billingAddress: description: Billing name and address of the project @@ -95,7 +98,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name diff --git a/charts/aiven-operator-crds/templates/aiven.io_projectvpcs.yaml b/charts/aiven-operator-crds/templates/aiven.io_projectvpcs.yaml index 35b1ffa..69773bf 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_projectvpcs.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_projectvpcs.yaml @@ -57,6 +57,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the VPC is in diff --git a/charts/aiven-operator-crds/templates/aiven.io_redis.yaml b/charts/aiven-operator-crds/templates/aiven.io_redis.yaml index d891134..94eb6aa 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_redis.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_redis.yaml @@ -44,6 +44,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object cloudName: description: Cloud the service runs in. @@ -53,7 +56,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name @@ -117,6 +121,8 @@ spec: - message: Value is immutable rule: self == oldSelf serviceIntegrations: + description: Service integrations to specify when creating a service. + Not applied after initial service creation items: description: Service integrations to specify when creating a service. Not applied after initial service creation diff --git a/charts/aiven-operator-crds/templates/aiven.io_serviceintegrations.yaml b/charts/aiven-operator-crds/templates/aiven.io_serviceintegrations.yaml index 8f90f8a..13a9220 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_serviceintegrations.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_serviceintegrations.yaml @@ -64,42 +64,243 @@ spec: name: minLength: 1 type: string + required: + - key + - name + type: object + clickhouseKafka: + description: Clickhouse Kafka configuration values + properties: + tables: + description: Tables to create + items: + description: Table to create + properties: + columns: + description: Table columns + items: + description: Table column + properties: + name: + description: Column name + maxLength: 40 + minLength: 1 + type: string + type: + description: Column type + maxLength: 1000 + minLength: 1 + type: string + required: + - name + - type + type: object + maxItems: 100 + type: array + data_format: + description: Message data format + enum: + - Avro + - CSV + - JSONAsString + - JSONCompactEachRow + - JSONCompactStringsEachRow + - JSONEachRow + - JSONStringsEachRow + - MsgPack + - TSKV + - TSV + - TabSeparated + type: string + group_name: + description: Kafka consumers group + maxLength: 249 + minLength: 1 + type: string + name: + description: Name of the table + maxLength: 40 + minLength: 1 + type: string + topics: + description: Kafka topics + items: + description: Kafka topic + properties: + name: + description: Name of the topic + maxLength: 249 + minLength: 1 + type: string + required: + - name + type: object + maxItems: 100 + type: array + required: + - columns + - data_format + - group_name + - name + - topics + type: object + maxItems: 100 + type: array + type: object + clickhousePostgresql: + description: Clickhouse PostgreSQL configuration values + properties: + databases: + description: Databases to expose + items: + description: Database to expose + properties: + database: + description: PostgreSQL database to expose + maxLength: 63 + minLength: 1 + type: string + schema: + description: PostgreSQL schema to expose + maxLength: 63 + minLength: 1 + type: string + type: object + maxItems: 10 + type: array type: object datadog: description: Datadog specific user configuration options properties: + datadog_dbm_enabled: + description: Enable Datadog Database Monitoring + type: boolean + datadog_tags: + description: Custom tags provided by user + items: + description: Datadog tag defined by user + properties: + comment: + description: Optional tag explanation + maxLength: 1024 + type: string + tag: + description: 'Tag format and usage are described here: https://docs.datadoghq.com/getting_started/tagging. + Tags with prefix ''aiven-'' are reserved for Aiven.' + maxLength: 200 + minLength: 1 + type: string + required: + - tag + type: object + maxItems: 32 + type: array exclude_consumer_groups: - description: Consumer groups to exclude + description: List of custom metrics items: type: string + maxItems: 1024 type: array exclude_topics: description: List of topics to exclude items: type: string + maxItems: 1024 type: array include_consumer_groups: - description: Consumer groups to include + description: List of custom metrics items: type: string + maxItems: 1024 type: array include_topics: - description: Topics to include + description: List of topics to include items: type: string + maxItems: 1024 type: array kafka_custom_metrics: description: List of custom metrics items: type: string + maxItems: 1024 type: array + max_jmx_metrics: + description: Maximum number of JMX metrics to send + maximum: 100000 + minimum: 10 + type: integer + opensearch: + description: Datadog Opensearch Options + properties: + index_stats_enabled: + description: Enable Datadog Opensearch Index Monitoring + type: boolean + pending_task_stats_enabled: + description: Enable Datadog Opensearch Pending Task Monitoring + type: boolean + pshard_stats_enabled: + description: Enable Datadog Opensearch Primary Shard Monitoring + type: boolean + type: object type: object destinationEndpointId: description: Destination endpoint for the integration (if any) type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf destinationServiceName: description: Destination service for the integration (if any) type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf + external_aws_cloudwatch_metrics: + description: External AWS CloudWatch Metrics integration Logs configuration + values + properties: + dropped_metrics: + description: Metrics to not send to AWS CloudWatch (takes precedence + over extra_metrics) + items: + description: Metric name and subfield + properties: + field: + description: Identifier of a value in the metric + maxLength: 1000 + type: string + metric: + description: Identifier of the metric + maxLength: 1000 + type: string + required: + - field + - metric + type: object + maxItems: 1024 + type: array + extra_metrics: + description: Metrics to allow through to AWS CloudWatch (in addition + to default metrics) + items: + description: Metric name and subfield + properties: + field: + description: Identifier of a value in the metric + maxLength: 1000 + type: string + metric: + description: Identifier of the metric + maxLength: 1000 + type: string + required: + - field + - metric + type: object + maxItems: 1024 + type: array + type: object integrationType: description: Type of the service integration enum: @@ -116,15 +317,23 @@ spec: - internal_connectivity - external_google_cloud_logging - datasource + - clickhouse_postgresql + - clickhouse_kafka + - logs + - external_aws_cloudwatch_metrics type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf kafkaConnect: description: Kafka Connect service configuration values properties: kafka_connect: + description: Kafka Connect service configuration values properties: config_storage_topic: description: The name of the topic where connector and task - configuration data are stored. This must be the same for + configuration data are stored.This must be the same for all workers with the same group_id. maxLength: 249 type: string @@ -135,8 +344,8 @@ spec: type: string offset_storage_topic: description: The name of the topic where connector and task - configuration offsets are stored. This must be the same - for all workers with the same group_id. + configuration offsets are stored.This must be the same for + all workers with the same group_id. maxLength: 249 type: string status_storage_topic: @@ -152,7 +361,67 @@ spec: properties: kafka_topic: description: Topic name - maxLength: 63 + maxLength: 249 + minLength: 1 + type: string + required: + - kafka_topic + type: object + kafkaMirrormaker: + description: Kafka MirrorMaker configuration values + properties: + cluster_alias: + description: 'The alias under which the Kafka cluster is known + to MirrorMaker. Can contain the following symbols: ASCII alphanumerics, + ''.'', ''_'', and ''-''.' + maxLength: 128 + pattern: ^[a-zA-Z0-9_.-]+$ + type: string + kafka_mirrormaker: + description: Kafka MirrorMaker configuration values + properties: + consumer_fetch_min_bytes: + description: The minimum amount of data the server should + return for a fetch request + maximum: 5242880 + minimum: 1 + type: integer + producer_batch_size: + description: The batch size in bytes producer will attempt + to collect before publishing to broker. + maximum: 5242880 + minimum: 0 + type: integer + producer_buffer_memory: + description: The amount of bytes producer can use for buffering + data before publishing to broker. + maximum: 134217728 + minimum: 5242880 + type: integer + producer_linger_ms: + description: The linger time (ms) for waiting new data to + arrive for publishing. + maximum: 5000 + minimum: 0 + type: integer + producer_max_request_size: + description: The maximum request size in bytes. + maximum: 67108864 + minimum: 0 + type: integer + type: object + type: object + logs: + description: Logs configuration values + properties: + elasticsearch_index_days_max: + description: Elasticsearch index retention limit + maximum: 10000 + minimum: 1 + type: integer + elasticsearch_index_prefix: + description: Elasticsearch index prefix + maxLength: 1024 minLength: 1 type: string type: object @@ -161,14 +430,18 @@ spec: properties: database: description: Name of the database where to store metric datapoints. - Only affects PostgreSQL destinations - format: ^[_A-Za-z0-9][-_A-Za-z0-9]{0,39}$ + Only affects PostgreSQL destinations. Defaults to 'metrics'. + Note that this must be the same for all metrics integrations + that write data to the same PostgreSQL service. maxLength: 40 + pattern: ^[_A-Za-z0-9][-_A-Za-z0-9]{0,39}$ type: string retention_days: description: Number of days to keep old metrics. Only affects PostgreSQL destinations. Set to 0 for no automatic cleanup. Defaults to 30 days. + maximum: 10000 + minimum: 0 type: integer ro_username: description: Name of a user that can be used to read metrics. @@ -177,16 +450,78 @@ spec: destinations. Defaults to 'metrics_reader'. Note that this must be the same for all metrics integrations that write data to the same PostgreSQL service. - format: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,39}$ maxLength: 40 + pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,39}$ type: string + source_mysql: + description: Configuration options for metrics where source service + is MySQL + properties: + telegraf: + description: Configuration options for Telegraf MySQL input + plugin + properties: + gather_event_waits: + description: Gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS + type: boolean + gather_file_events_stats: + description: gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME + type: boolean + gather_index_io_waits: + description: Gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE + type: boolean + gather_info_schema_auto_inc: + description: Gather auto_increment columns and max values + from information schema + type: boolean + gather_innodb_metrics: + description: Gather metrics from INFORMATION_SCHEMA.INNODB_METRICS + type: boolean + gather_perf_events_statements: + description: Gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST + type: boolean + gather_process_list: + description: Gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST + type: boolean + gather_slave_status: + description: Gather metrics from SHOW SLAVE STATUS command + output + type: boolean + gather_table_io_waits: + description: Gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE + type: boolean + gather_table_lock_waits: + description: Gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS + type: boolean + gather_table_schema: + description: Gather metrics from INFORMATION_SCHEMA.TABLES + type: boolean + perf_events_statements_digest_text_limit: + description: Truncates digest text from perf_events_statements + into this many characters + maximum: 2048 + minimum: 1 + type: integer + perf_events_statements_limit: + description: Limits metrics from perf_events_statements + maximum: 4000 + minimum: 1 + type: integer + perf_events_statements_time_limit: + description: Only include perf_events_statements whose + last seen is less than this many seconds + maximum: 2592000 + minimum: 1 + type: integer + type: object + type: object username: description: Name of the user used to write metrics. Only affects PostgreSQL destinations. Defaults to 'metrics_writer'. Note that this must be the same for all metrics integrations that write data to the same PostgreSQL service. - format: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,39}$ maxLength: 40 + pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,39}$ type: string type: object project: @@ -194,12 +529,21 @@ spec: format: ^[a-zA-Z0-9_-]*$ maxLength: 63 type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf sourceEndpointID: description: Source endpoint for the integration (if any) type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf sourceServiceName: description: Source service for the integration (if any) type: string + x-kubernetes-validations: + - message: Value is immutable + rule: self == oldSelf required: - integrationType - project diff --git a/charts/aiven-operator-crds/templates/aiven.io_serviceusers.yaml b/charts/aiven-operator-crds/templates/aiven.io_serviceusers.yaml index 7692594..858b892 100644 --- a/charts/aiven-operator-crds/templates/aiven.io_serviceusers.yaml +++ b/charts/aiven-operator-crds/templates/aiven.io_serviceusers.yaml @@ -54,6 +54,9 @@ spec: name: minLength: 1 type: string + required: + - key + - name type: object authentication: description: Authentication details @@ -65,7 +68,8 @@ spec: description: Information regarding secret creation properties: name: - description: Name of the Secret resource to be created + description: Name of the secret resource to be created. By default, + is equal to the resource name type: string required: - name diff --git a/charts/aiven-operator/Chart.yaml b/charts/aiven-operator/Chart.yaml index 0b5ffee..645e680 100644 --- a/charts/aiven-operator/Chart.yaml +++ b/charts/aiven-operator/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: aiven-operator description: A Helm chart to deploy the aiven operator type: application -version: v0.8.1 -appVersion: v0.8.0 +version: v0.9.0 +appVersion: v0.9.0 maintainers: - name: mhoffm-aiven url: https://www.aiven.io