Skip to content

Commit

Permalink
Chore(charts): update sequencer faucet chart (#1140)
Browse files Browse the repository at this point in the history
## Summary
Sequencer faucet needs an update to use latest protos.

## Changes
* version update for latest `sequencer` and `sequencer-faucet` charts
* adds new `sequencerChainId` value, defaults to the default chart
sequencer chain Id
* decreases genesis accounts balance allocation, preventing balance
overflow of sudo address
*  adjust other variables

## Testing
Tested against local k8 cluster and dev-network.

## Breaking Changelist
* sequencer faucet now takes a `sequencerChainId` as required by latest
proto for sending a transfer action.
  • Loading branch information
quasystaty1 authored Jun 12, 2024
1 parent d2cdea7 commit c31c10b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/sequencer-faucet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.0
version: 0.7.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.5.0"
appVersion: "0.6.0"

maintainers:
- name: wafflesvonmaple
Expand Down
3 changes: 2 additions & 1 deletion charts/sequencer-faucet/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ data:
SEQUENCER_FAUCET_PROXYCOUNT: "{{ .Values.config.proxyCount }}"
SEQUENCER_FAUCET_SEQUENCER_RPC_URL: "{{ .Values.config.sequencerRpcUrl}}"
SEQUENCER_FAUCET_AMOUNT: "{{ .Values.config.amount }}"
SEQUENCER_CHAIN_ID: "{{ .Values.config.sequencerChainId }}"
{{- if not .Values.secretProvider.enabled }}
SEQUENCER_FAUCET_PRIVATE_KEY: "{{ .Values.config.fundingPrivateKey.content }}"
SEQUENCER_FAUCET_PRIVATE_KEY: "{{ .Values.config.fundingPrivateKey.devContent }}"
{{- end }}
---
1 change: 1 addition & 0 deletions charts/sequencer-faucet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- -wallet.privkey=$(SEQUENCER_FAUCET_PRIVATE_KEY)
- -faucet.amount=$(SEQUENCER_FAUCET_AMOUNT)
- -proxycount=$(SEQUENCER_FAUCET_PROXYCOUNT)
- -sequencer.chainId=$(SEQUENCER_CHAIN_ID)
envFrom:
- configMapRef:
name: sequencer-faucet-env
Expand Down
5 changes: 3 additions & 2 deletions charts/sequencer-faucet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ global:
config:
proxyCount: 1
sequencerRpcUrl: http://node0-sequencer-rpc-service.astria-dev-cluster.svc.cluster.local:26657
sequencerChainId: "sequencer-test-chain-0"
# This private key will be replaced with `sequencerPrivateKey` when enabled
# For testing purposes only, do not use except with local development cluster,
# it corresponds with the following account:
Expand All @@ -20,13 +21,13 @@ config:
amount: 1800

images:
sequencerFaucet: "ghcr.io/astriaorg/seq-faucet:0.5.0"
sequencerFaucet: "ghcr.io/astriaorg/seq-faucet:0.6.0"

# When deploying in a production environment should use a secret provider
# This is configured for use with GCP, need to set own resource names
# and keys
secretProvider:
enabled: true
enabled: false
provider: gcp
# May need to update this template to match the secret provider
# it will be passed an object containing:
Expand Down
2 changes: 1 addition & 1 deletion charts/sequencer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.15.6
version: 0.15.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 5 additions & 5 deletions charts/sequencer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ images:
devTag: v0.38.6
sequencer:
repo: ghcr.io/astriaorg/sequencer
tag: "0.13.0"
tag: 0.13.0
devTag: latest

config:
Expand All @@ -38,14 +38,14 @@ config:
# Note large balances must be strings support templating with the u128 size account balances
genesisAccounts:
- address: 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
balance: "340282366920938463463374607431768211455"
balance: "333333333333333333"
- address: 34fec43c7fcab9aef3b3cf8aba855e41ee69ca3a
balance: "340282366920938463463374607431768211455"
balance: "333333333333333333"
- address: 60709e2d391864b732b4f0f51e387abb76743871
balance: "340282366920938463463374607431768211455"
balance: "333333333333333333"
# NOTE - the following address matches the privKey that funds the sequencer-faucet
- address: 00d75b270542084a54fcf0d0f6eab0402982d156
balance: "340282366920938463463374607431768211455"
balance: "333333333333333333"

metrics:
enabled: false
Expand Down

0 comments on commit c31c10b

Please sign in to comment.