Skip to content

Commit 3836404

Browse files
github-actions[bot]web-flowbyashimov
authored
chore(updater): bump pkg/dist/*.yml (2025-09-15) (#374)
Co-authored-by: GitHub <[email protected]> Co-authored-by: Murad Biashimov <[email protected]>
1 parent be9ad4b commit 3836404

File tree

2 files changed

+167
-1
lines changed

2 files changed

+167
-1
lines changed

internal/gen/gen.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ func fromFile(fileName string) (types.GenerationResult, error) {
122122
log.Printf("Removed `custom_repos` from opensearch, because of `one_of`")
123123
}
124124

125+
// autoscale_cpu_fraction is an invalid property, it shouldn't be there.
126+
// todo: remove this when the schema is fixed
127+
if kind == types.KeyIntegrationEndpointTypes && name == "autoscaler" {
128+
if autoscaling, ok := uc.Properties["autoscaling"]; ok && autoscaling.Items != nil {
129+
if t, ok := autoscaling.Items.Properties["type"]; ok {
130+
t.Enum = filterEnums(t.Enum, func(v any) bool {
131+
return fmt.Sprint(v) != "autoscale_cpu_fraction"
132+
})
133+
134+
// fixme: properties are not pointers
135+
autoscaling.Items.Properties["type"] = t
136+
}
137+
}
138+
}
139+
125140
result[kind][name] = *uc
126141
}
127142

@@ -346,3 +361,13 @@ var reWhitespace = regexp.MustCompile(`\s+`)
346361
func normalizeWhitespace(s string) string {
347362
return strings.TrimSpace(reWhitespace.ReplaceAllString(s, " "))
348363
}
364+
365+
func filterEnums(enums []types.UserConfigSchemaEnumValue, keep func(v any) bool) []types.UserConfigSchemaEnumValue {
366+
result := make([]types.UserConfigSchemaEnumValue, 0, len(enums))
367+
for _, v := range enums {
368+
if keep(v.Value) {
369+
result = append(result, v)
370+
}
371+
}
372+
return result
373+
}

pkg/dist/service_types.yml

Lines changed: 142 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ alloydbomni:
3434
title: PostgreSQL major version
3535
type: string
3636
enum:
37-
- value: "15"
37+
- is_deprecated: true
38+
deprecation_notice: This value is deprecated.
39+
value: "15"
3840
backup_hour:
3941
title: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.
4042
type: integer
@@ -2395,6 +2397,16 @@ kafka:
23952397
description: 'This configuration controls whether down-conversion of message formats is enabled to satisfy consume requests. (Default: true)'
23962398
type: boolean
23972399
example: true
2400+
log_message_timestamp_after_max_ms:
2401+
title: log.message.timestamp.after.max.ms
2402+
description: 'The maximum difference allowed between the timestamp when a broker receives a message and the timestamp specified in the message. If message.timestamp.type=CreateTime, a message will be rejected if the difference in timestamp exceeds this threshold. Applies only for messages with timestamps later than the broker''s timestamp. (Default: 9223372036854775807 (Long.MAX_VALUE))'
2403+
type: integer
2404+
minimum: 0
2405+
log_message_timestamp_before_max_ms:
2406+
title: log.message.timestamp.before.max.ms
2407+
description: 'The maximum difference allowed between the timestamp when a broker receives a message and the timestamp specified in the message. If message.timestamp.type=CreateTime, a message will be rejected if the difference in timestamp exceeds this threshold. Applies only for messages with timestamps earlier than the broker''s timestamp. (Default: 9223372036854775807 (Long.MAX_VALUE))'
2408+
type: integer
2409+
minimum: 0
23982410
log_message_timestamp_difference_max_ms:
23992411
title: log.message.timestamp.difference.max.ms
24002412
description: 'The maximum difference allowed between the timestamp when a broker receives a message and the timestamp specified in the message (Default: 9223372036854775807 (Long.MAX_VALUE))'
@@ -4521,6 +4533,134 @@ opensearch:
45214533
type: string
45224534
max_length: 255
45234535
example: grafana.example.org
4536+
custom_keystores:
4537+
title: OpenSearch custom keystores
4538+
description: Allow to register custom keystores in OpenSearch
4539+
type: array
4540+
items:
4541+
type: object
4542+
required:
4543+
- name
4544+
- settings
4545+
- type
4546+
properties:
4547+
name:
4548+
type: string
4549+
pattern: ^[^\r\n]*$
4550+
settings:
4551+
one_of:
4552+
- type: object
4553+
required:
4554+
- account
4555+
properties:
4556+
account:
4557+
title: Account name
4558+
type: string
4559+
pattern: ^[^\r\n]*$
4560+
key:
4561+
title: Account secret key
4562+
description: Azure account secret key. One of key or sas_token should be specified
4563+
type: string
4564+
pattern: ^[^\r\n]*$
4565+
_secure: true
4566+
sas_token:
4567+
title: SAS token
4568+
description: A shared access signatures (SAS) token. One of key or sas_token should be specified
4569+
type: string
4570+
pattern: ^[^\r\n]*$
4571+
_secure: true
4572+
- type: object
4573+
required:
4574+
- credentials
4575+
properties:
4576+
credentials:
4577+
title: Google service account credentials map
4578+
type: object
4579+
required:
4580+
- private_key_id
4581+
- private_key
4582+
- client_email
4583+
- client_id
4584+
- type
4585+
properties:
4586+
auth_provider_x509_cert_url:
4587+
title: The certificate service of Google
4588+
type: string
4589+
example: https://www.googleapis.com/oauth2/v1/certs
4590+
auth_uri:
4591+
title: The authentication endpoint of Google
4592+
type: string
4593+
example: https://accounts.google.com/o/oauth2/auth
4594+
client_email:
4595+
title: Email of the service account
4596+
type: string
4597+
4598+
client_id:
4599+
title: Numeric client id for this service account
4600+
type: string
4601+
example: "103654484443722885992"
4602+
client_x509_cert_url:
4603+
title: Certificate URL for your service account
4604+
type: string
4605+
example: https://www.googleapis.com/robot/v1/metadata/x509/my-service-account%40some-my-project.iam.gserviceaccount.com
4606+
hmac_access_id:
4607+
description: The access ID for HMAC authentication with Google Cloud Storage
4608+
type: string
4609+
hmac_secret:
4610+
description: The secret key for HMAC authentication with Google Cloud Storage
4611+
type: string
4612+
private_key:
4613+
title: PEM-encoded private key
4614+
type: string
4615+
example: |
4616+
-----BEGIN PRIVATE KEY-----
4617+
...
4618+
-----END PRIVATE KEY-----
4619+
private_key_id:
4620+
title: Hexadecimal ID number of your private key
4621+
type: string
4622+
example: 5fdeb02a11ddf081930ac3ac60bf376a0aef8fad
4623+
project_id:
4624+
title: Gcloud project id
4625+
type: string
4626+
example: some-my-project
4627+
token_uri:
4628+
title: The token lease endpoint of Google
4629+
type: string
4630+
example: https://accounts.google.com/o/oauth2/token
4631+
type:
4632+
title: Credentials type
4633+
description: Always service_account for credentials created in Gcloud console or CLI
4634+
type: string
4635+
example: service_account
4636+
universe_domain:
4637+
title: The universe domain
4638+
description: The universe domain. The default universe domain is googleapis.com.
4639+
type: string
4640+
example: '{"universe_domain": "googleapis.com", ...'
4641+
_secure: true
4642+
- type: object
4643+
required:
4644+
- access_key
4645+
- secret_key
4646+
properties:
4647+
access_key:
4648+
title: AWS Access key
4649+
type: string
4650+
pattern: ^[^\r\n]*$
4651+
secret_key:
4652+
title: AWS secret key
4653+
description: AWS secret key
4654+
type: string
4655+
pattern: ^[^\r\n]*$
4656+
_secure: true
4657+
type:
4658+
type: string
4659+
enum:
4660+
- value: azure
4661+
- value: gcs
4662+
- value: s3
4663+
max_items: 10
45244664
disable_replication_factor_adjustment:
45254665
title: Disable replication factor adjustment
45264666
description: 'Disable automatic replication factor adjustment for multi-node services. By default, Aiven ensures all indexes are replicated at least to two nodes. Note: Due to potential data loss in case of losing a service node, this setting can not be activated unless specifically allowed for the project.'
@@ -5618,6 +5758,7 @@ opensearch:
56185758
enum:
56195759
- value: "1"
56205760
- value: "2"
5761+
- value: "2.19"
56215762
private_access:
56225763
title: Allow access to selected service ports from private networks
56235764
type: object

0 commit comments

Comments
 (0)