From b6e3709efb0df5d4ac5a5347b37453866b61bee1 Mon Sep 17 00:00:00 2001 From: tenequm Date: Wed, 13 Dec 2023 12:30:16 +0200 Subject: [PATCH] feat: add goerli environment deployment --- ops/helmfiles/README.md | 22 +++++++++++++++ ops/helmfiles/config/default.yaml | 4 +++ ops/helmfiles/config/goerli.yaml | 46 +++++++++++++++++++++++++++++++ ops/helmfiles/helmfile.yaml | 10 ++++++- 4 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 ops/helmfiles/README.md create mode 100644 ops/helmfiles/config/goerli.yaml diff --git a/ops/helmfiles/README.md b/ops/helmfiles/README.md new file mode 100644 index 000000000..714269905 --- /dev/null +++ b/ops/helmfiles/README.md @@ -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 +``` diff --git a/ops/helmfiles/config/default.yaml b/ops/helmfiles/config/default.yaml index 7eb5ef860..1c6beec55 100644 --- a/ops/helmfiles/config/default.yaml +++ b/ops/helmfiles/config/default.yaml @@ -1,5 +1,9 @@ remoteCluster: true +anvilEnabled: true +aggregatorEnabled: true +operatorEnabled: true + aggregatorArgs: - --config - /config/aggregator.yaml diff --git a/ops/helmfiles/config/goerli.yaml b/ops/helmfiles/config/goerli.yaml new file mode 100644 index 000000000..0d5922376 --- /dev/null +++ b/ops/helmfiles/config/goerli.yaml @@ -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" + } \ No newline at end of file diff --git a/ops/helmfiles/helmfile.yaml b/ops/helmfiles/helmfile.yaml index 8ce0a5f28..5ce2208e2 100644 --- a/ops/helmfiles/helmfile.yaml +++ b/ops/helmfiles/helmfile.yaml @@ -6,13 +6,19 @@ 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 }} @@ -20,6 +26,7 @@ releases: - name: eigen-aggregator namespace: 'eigen-{{ requiredEnv "ENVIRONMENT" }}' + installed: {{ .Values.aggregatorEnabled }} chart: ../helm-charts/eigen-node values: - image: @@ -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: