mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
[buddy] 🐛 issue #30400 fixing missing billing_mode param in teleport-cluster helm chart fo dynamodb autoscaling (#30764)
* 🐛 issue #30400, dynamodb autoscaling mode requires `billing_mode: provisioned` * Add tests --------- Co-authored-by: Anathan (Ana) Ye <[email protected]>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
continuous_backups: {{ required "aws.backups is required in chart values" .Values.aws.backups }}
|
||||
{{- if .Values.aws.dynamoAutoScaling }}
|
||||
auto_scaling: true
|
||||
billing_mode: provisioned
|
||||
read_min_capacity: {{ required "aws.readMinCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.readMinCapacity }}
|
||||
read_max_capacity: {{ required "aws.readMaxCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.readMaxCapacity }}
|
||||
read_target_value: {{ required "aws.readTargetValue is required when aws.dynamoAutoScaling is true" .Values.aws.readTargetValue }}
|
||||
|
||||
@@ -445,6 +445,7 @@ matches snapshot for aws-dynamodb-autoscaling.yaml:
|
||||
- dynamodb://test-dynamodb-auditlog-table
|
||||
audit_sessions_uri: s3://test-s3-session-storage-bucket
|
||||
auto_scaling: true
|
||||
billing_mode: provisioned
|
||||
continuous_backups: false
|
||||
read_max_capacity: 100
|
||||
read_min_capacity: 5
|
||||
|
||||
@@ -502,3 +502,11 @@ tests:
|
||||
of: ConfigMap
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: sets "provisioned" billing mode when autoscaling is enabled
|
||||
values:
|
||||
- ../.lint/aws-dynamodb-autoscaling.yaml
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'billing_mode: provisioned'
|
||||
|
||||
Reference in New Issue
Block a user