Skip to content

Commit

Permalink
feat: add goerli environment deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tenequm committed Dec 13, 2023
1 parent faac0e5 commit b6e3709
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 1 deletion.
22 changes: 22 additions & 0 deletions ops/helmfiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Using helmfile.yaml

## Prerequisites

1. Install [[helmfile](https://github.com/helmfile/helmfile)]
2. Configure connection to GKE `mangata-dev-alpha` cluster

```bash
gcloud container clusters get-credentials mangata-dev-alpha --region europe-west1
```

## How to deploy to goerli

```bash
# Set ENVIRONMENT variable to `goerli`
export ENVIRONMENT=goerli
# Set image tag to deploy
export IMAGE_TAG=latest

# Deploy to `goerli` environment
helmfile sync -e goerli
```
4 changes: 4 additions & 0 deletions ops/helmfiles/config/default.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
remoteCluster: true

anvilEnabled: true
aggregatorEnabled: true
operatorEnabled: true

aggregatorArgs:
- --config
- /config/aggregator.yaml
Expand Down
46 changes: 46 additions & 0 deletions ops/helmfiles/config/goerli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
remoteCluster: true

anvilEnabled: false
aggregatorEnabled: true
operatorEnabled: false

aggregatorArgs:
- --config
- /config/aggregator.yaml
- --credible-squaring-deployment
- /config/credible_squaring_avs_deployment_output.json
- --shared-avs-contracts-deployment
- /config/shared_avs_contracts_deployment_output.json
- --ecdsa-private-key
- "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
aggregatorConfigFiles:
- name: aggregator.yaml
content: |
# production only prints info and above. development also prints debug
environment: production
eth_rpc_url: http://anvil:8545
eth_ws_url: ws://anvil:8545
# address which the aggregator listens on for operator signed messages
aggregator_server_ip_port_address: 0.0.0.0:8090
bls_public_key_compendium_address: 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44
substrate_rpc_url: wss://kusama-archive.mangata.online
- name: credible_squaring_avs_deployment_output.json
content: |
{
"addresses": {
"credibleSquaringServiceManager": "0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690",
"credibleSquaringServiceManagerImplementation": "0x9d4454B023096f34B160D6B654540c56A1F81688",
"credibleSquaringTaskManager": "0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB",
"credibleSquaringTaskManagerImplementation": "0x36C02dA8a0983159322a80FFE9F24b1acfF8B570",
"erc20Mock": "0x4A679253410272dd5232B3Ff7cF5dbB88f295319",
"erc20MockStrategy": "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
"registryCoordinator": "0x9E545E3C0baAB3E08CdfD552C960A1050f373042",
"registryCoordinatorImplementation": "0x998abeb3E57409262aE5b751f60747921B33613E"
}
}
- name: shared_avs_contracts_deployment_output.json
content: |
{
"blsOperatorStateRetriever": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f",
"blsPublicKeyCompendium": "0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44"
}
10 changes: 9 additions & 1 deletion ops/helmfiles/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,27 @@ environments:
values:
- config/default.yaml
- config/fungible.yaml
goerli:
values:
- config/default.yaml
- config/goerli.yaml
---
helmDefaults:
wait: true
kubeContext: gke_direct-pixel-353917_europe-west1_mangata-dev-alpha
wait: false

releases:
- name: anvil
namespace: 'eigen-{{ requiredEnv "ENVIRONMENT" }}'
installed: {{ .Values.anvilEnabled }}
chart: ../helm-charts/anvil-testnet
values:
- environment: {{ requiredEnv "ENVIRONMENT" | quote }}
remoteCluster: {{ .Values.remoteCluster }}

- name: eigen-aggregator
namespace: 'eigen-{{ requiredEnv "ENVIRONMENT" }}'
installed: {{ .Values.aggregatorEnabled }}
chart: ../helm-charts/eigen-node
values:
- image:
Expand All @@ -31,6 +38,7 @@ releases:
configFiles: {{ toYaml .Values.aggregatorConfigFiles | nindent 8 }}
- name: eigen-operator
namespace: 'eigen-{{ requiredEnv "ENVIRONMENT" }}'
installed: {{ .Values.operatorEnabled }}
chart: ../helm-charts/eigen-node
values:
- image:
Expand Down

0 comments on commit b6e3709

Please sign in to comment.