Skip to content

Commit

Permalink
Add DynamoDB base resource unit option (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
scalar-boney authored Jun 9, 2021
1 parent c078b6c commit 1c18628
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion charts/scalardl/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ keywords:
- ledger
- dlt
home: https://scalar-labs.com/
source: ["https://scalardl.readthedocs.io/en/latest/"]
sources:
- https://github.com/scalar-labs/scalardl
maintainers:
- name: Paul Dozancuk
email: [email protected]
Expand Down
5 changes: 3 additions & 2 deletions charts/schema-loading/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: schema-loading
description: Implementation schema loading for scalar-ledger
type: application
version: 1.3.0
version: 1.3.1
appVersion: 1.3.0
deprecated: false
icon: https://scalar-labs.com/wp-content/themes/scalar/assets/img/logo_scalar.svg
Expand All @@ -11,7 +11,8 @@ keywords:
- DLT
- schema-loading
home: https://scalar-labs.com/
source: ["https://scalardl.readthedocs.io/en/latest/"]
sources:
- https://github.com/scalar-labs/scalardb/tree/master/tools/scalar-schema
maintainers:
- name: Paul Dozancuk
email: [email protected]
Expand Down
3 changes: 2 additions & 1 deletion charts/schema-loading/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# schema-loading

Implementation schema loading for scalar-ledger
Current chart version is `1.3.0`
Current chart version is `1.3.1`

## Values

Expand All @@ -12,6 +12,7 @@ Current chart version is `1.3.0`
| schemaLoading.contactPort | int | `9042` | The database port number. (Ignored if the database is `cosmos`.) |
| schemaLoading.cosmosBaseResourceUnit | int | `400` | The resource unit value of the Cosmos DB schema. This is a Cosmos DB specific option. |
| schemaLoading.database | string | `"cassandra"` | The database to which the schema is loaded. `cassandra` and `cosmos` are supported. |
| schemaLoading.dynamoBaseResourceUnit | int | `10` | The resource unit value of the DynamoDB schema. This is a DynamoDB specific option. |
| schemaLoading.existingSecret | string | `nil` | Name of existing secret to use for storing database username and password |
| schemaLoading.image.pullPolicy | string | `"IfNotPresent"` | Specify a imagePullPolicy |
| schemaLoading.image.repository | string | `"ghcr.io/scalar-labs/scalardl-schema-loader"` | Docker image |
Expand Down
2 changes: 2 additions & 0 deletions charts/schema-loading/templates/batchjob-schema-loading.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
- "--dynamo"
- "--region"
- "{{ .Values.schemaLoading.contactPoints }}"
- "-r"
- "{{ .Values.schemaLoading.dynamoBaseResourceUnit }}"
{{- end }}
env:
- name: DB_USERNAME
Expand Down
2 changes: 2 additions & 0 deletions charts/schema-loading/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ schemaLoading:
cassandraReplicationFactor: 3
# schemaLoading.cosmosBaseResourceUnit -- The resource unit value of the Cosmos DB schema. This is a Cosmos DB specific option.
cosmosBaseResourceUnit: 400
# schemaLoading.dynamoBaseResourceUnit -- The resource unit value of the DynamoDB schema. This is a DynamoDB specific option.
dynamoBaseResourceUnit: 10

image:
# schemaLoading.image.repository -- Docker image
Expand Down

0 comments on commit 1c18628

Please sign in to comment.