Skip to content

Commit

Permalink
feat: update web3signer init slashing db (#276)
Browse files Browse the repository at this point in the history
* feat: update web3signer init slashing db

Signed-off-by: Barnabas Busa <busa.barnabas@gmail.com>

* fix lint

---------

Signed-off-by: Barnabas Busa <busa.barnabas@gmail.com>
  • Loading branch information
barnabasbusa authored Jan 23, 2024
1 parent 7885d8a commit b05ea98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions charts/web3signer/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.9.13
digest: sha256:d0e9612833647ddb6d1d4a911f52a6609fe556aab7a757c1cf722a74accdb9fc
generated: "2022-10-27T11:48:07.327750574+02:00"
version: 12.12.10
digest: sha256:d1940885c90c55b21e5455688cd5d10dbb6b508d22475333f52eee58661d3775
generated: "2024-01-23T12:49:13.839414+01:00"
4 changes: 2 additions & 2 deletions charts/web3signer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: web3signer
description: Web3Signer is capable of signing on multiple platforms using private keys stored in an external vault, or encrypted on a disk.
home: https://github.com/Consensys/web3signer/
type: application
version: 1.0.4
version: 1.0.5
maintainers:
- name: barnabasbusa
email: busa.barnabas@gmail.com
- name: skylenet
email: rafael@skyle.net
dependencies:
- name: postgresql
version: "11.x.x"
version: "12.x.x"
repository: "https://charts.bitnami.com/bitnami"
condition: slashingprotectiondb.enabled
alias: slashingprotectiondb
6 changes: 3 additions & 3 deletions charts/web3signer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# web3signer

![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 1.0.5](https://img.shields.io/badge/Version-1.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Web3Signer is capable of signing on multiple platforms using private keys stored in an external vault, or encrypted on a disk.

Expand All @@ -11,7 +11,7 @@ Web3Signer is capable of signing on multiple platforms using private keys stored

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | slashingprotectiondb(postgresql) | 11.x.x |
| https://charts.bitnami.com/bitnami | slashingprotectiondb(postgresql) | 12.x.x |

## Values

Expand Down Expand Up @@ -89,7 +89,7 @@ Web3Signer is capable of signing on multiple platforms using private keys stored
| slashingprotectiondb.primary.extraVolumes[0].name | string | `"sql-scripts"` | |
| slashingprotectiondb.primary.initContainers[0].command[0] | string | `"bash"` | |
| slashingprotectiondb.primary.initContainers[0].command[1] | string | `"-cex"` | |
| slashingprotectiondb.primary.initContainers[0].command[2] | string | `"cd /sql-scripts\nBASE_URL=\"https://raw.githubusercontent.com/ConsenSys/web3signer/master/slashing-protection/src/main/resources/migrations/postgresql\"\nMIGRATIONS=(\n \"V00001__initial.sql\"\n \"V00002__removeUniqueConstraints.sql\"\n \"V00003__addLowWatermark.sql\"\n \"V00004__addGenesisValidatorsRoot.sql\"\n \"V00005__xnor_source_target_low_watermark.sql\"\n \"V00006__signed_data_indexes.sql\"\n \"V00007__add_db_version.sql\"\n \"V00008__signed_data_unique_constraints.sql\"\n \"V00009__upsert_validators.sql\"\n \"V00010__validator_enabled_status.sql\"\n \"V00011__bigint_indexes.sql\"\n)\nfor MIGRATION in \"${MIGRATIONS[@]}\"; do\n if [ ! -f \"/sql-scripts/$MIGRATION\" ]; then\n wget \"$BASE_URL/$MIGRATION\"\n fi\ndone\n"` | |
| slashingprotectiondb.primary.initContainers[0].command[2] | string | `"cd /sql-scripts\nBASE_URL=\"https://raw.githubusercontent.com/ConsenSys/web3signer/master/slashing-protection/src/main/resources/migrations/postgresql\"\nMIGRATIONS=(\n \"V00001__initial.sql\"\n \"V00002__removeUniqueConstraints.sql\"\n \"V00003__addLowWatermark.sql\"\n \"V00004__addGenesisValidatorsRoot.sql\"\n \"V00005__xnor_source_target_low_watermark.sql\"\n \"V00006__signed_data_indexes.sql\"\n \"V00007__add_db_version.sql\"\n \"V00008__signed_data_unique_constraints.sql\"\n \"V00009__upsert_validators.sql\"\n \"V00010__validator_enabled_status.sql\"\n \"V00011__bigint_indexes.sql\"\n \"V00012__add_highwatermark_metadata.sql\"\n)\nfor MIGRATION in \"${MIGRATIONS[@]}\"; do\n if [ ! -f \"/sql-scripts/$MIGRATION\" ]; then\n wget \"$BASE_URL/$MIGRATION\"\n fi\ndone\n"` | |
| slashingprotectiondb.primary.initContainers[0].image | string | `"bash:latest"` | |
| slashingprotectiondb.primary.initContainers[0].imagePullPolicy | string | `"IfNotPresent"` | |
| slashingprotectiondb.primary.initContainers[0].name | string | `"init-sql-migration-scripts"` | |
Expand Down
1 change: 1 addition & 0 deletions charts/web3signer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ slashingprotectiondb:
"V00009__upsert_validators.sql"
"V00010__validator_enabled_status.sql"
"V00011__bigint_indexes.sql"
"V00012__add_highwatermark_metadata.sql"
)
for MIGRATION in "${MIGRATIONS[@]}"; do
if [ ! -f "/sql-scripts/$MIGRATION" ]; then
Expand Down

0 comments on commit b05ea98

Please sign in to comment.