From bed335bdd9033aa96be663475eebaae895bdd84d Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Wed, 31 Jul 2024 16:33:30 +0200 Subject: [PATCH] Tweak a little bit --- charts/tezos/scripts/evm-observer.sh | 7 ++++++- charts/tezos/templates/octez-rollup-node.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/tezos/scripts/evm-observer.sh b/charts/tezos/scripts/evm-observer.sh index c59ea3c..ad62bc7 100644 --- a/charts/tezos/scripts/evm-observer.sh +++ b/charts/tezos/scripts/evm-observer.sh @@ -6,6 +6,9 @@ ROLLUP_DATA_DIR="${TEZ_VAR}/rollup" EVM_DATA_DIR="${TEZ_VAR}/evm" EVM_CONFIG_FILE="${EVM_DATA_DIR}/config.json" +EVM_CONFIGMAP_DIR="${TEZ_VAR}/evm-config" +EVM_CONFIGMAP_CONFIG_FILE="${EVM_CONFIGMAP_DIR}/config.json" + # Wait till rollup node to be fully synchronized to run init from rollup command WAIT_LIMIT=30 COUNTER=1 @@ -25,13 +28,15 @@ if [ ! -e "${EVM_DATA_DIR}/store.sqlite" ]; then fi # Provide basic config if there is no config specified in values.yaml -if [ ! -e "${EVM_CONFIG_FILE}" ]; then +if [ ! -e "${EVM_CONFIGMAP_CONFIG_FILE}" ]; then cat > "${EVM_CONFIG_FILE}" << EOF { "rpc-addr": "0.0.0.0", "cors_origins": [ "*" ], "cors_headers": [ "*" ], "rollup_node_endpoint": "http://127.0.0.1:8932", "verbose": "notice", "max_active_connections": 8000 } EOF +else + cp -vf ${EVM_CONFIGMAP_CONFIG_FILE} ${EVM_CONFIG_FILE} fi CMD="$TEZ_BIN/octez-evm-node run observer \ diff --git a/charts/tezos/templates/octez-rollup-node.yaml b/charts/tezos/templates/octez-rollup-node.yaml index 85e14fa..ce8eaf7 100644 --- a/charts/tezos/templates/octez-rollup-node.yaml +++ b/charts/tezos/templates/octez-rollup-node.yaml @@ -120,7 +120,7 @@ spec: - mountPath: /var/tezos name: var-volume {{- if $v.evm.config }} - - mountPath: /var/tezos/evm + - mountPath: /var/tezos/evm-config name: evm-config-volume subpathsubPath: config.json {{- end }}