From 88a6608d8d5f33d94535ed4df443b83a05926542 Mon Sep 17 00:00:00 2001 From: Chris Wessels Date: Fri, 26 Aug 2022 20:20:08 +0100 Subject: [PATCH] feat(proxyd): comprehensive method mappings --- charts/proxyd/Chart.yaml | 2 +- charts/proxyd/README.md | 6 +++-- charts/proxyd/README.md.gotmpl | 2 ++ charts/proxyd/values.yaml | 40 ++++++++++++++++++++++++++++++++-- 4 files changed, 45 insertions(+), 5 deletions(-) diff --git a/charts/proxyd/Chart.yaml b/charts/proxyd/Chart.yaml index fab057e8..169f9c20 100644 --- a/charts/proxyd/Chart.yaml +++ b/charts/proxyd/Chart.yaml @@ -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.1.1 +version: 0.1.2 # 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 diff --git a/charts/proxyd/README.md b/charts/proxyd/README.md index a5109de6..594006ac 100644 --- a/charts/proxyd/README.md +++ b/charts/proxyd/README.md @@ -2,7 +2,7 @@ Deploy and scale [proxyd](https://github.com/ethereum-optimism/optimism/tree/develop/proxyd) inside Kubernetes with ease -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square) ## Introduction @@ -41,6 +41,8 @@ The Chart configures 3 backend groups by default: You should assign your backends to the groups that make sense. +**You must have at least one node in every group that is defined.** + Example: ```yaml @@ -155,7 +157,7 @@ We do not recommend that you upgrade the application by overriding `image.tag`. | proxyd.service.type | | string | `"ClusterIP"` | | proxyd.terminationGracePeriodSeconds | Amount of time to wait before force-killing the proxyd process | int | `60` | | proxyd.tolerations | | list | `[]` | - | rpcMethodMappings | Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name) | object | `{"eth_blockNumber":"archive","eth_call":"archive","eth_chainId":"pruned","trace_block":"archive-trace"}` | + | rpcMethodMappings | Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name) | object | `{"eth_blockNumber":"pruned","eth_call":"archive","eth_coinbase":"pruned","eth_estimateGas":"pruned","eth_gasPrice":"pruned","eth_getBalance":"pruned","eth_getBlockByHash":"pruned","eth_getBlockByNumber":"pruned","eth_getBlockTransactionCountByHash":"pruned","eth_getBlockTransactionCountByNumber":"pruned","eth_getCode":"pruned","eth_getFilterChanges":"pruned","eth_getLogs":"pruned","eth_getStorageAt":"pruned","eth_getTransactionByBlockHashAndIndex":"archive","eth_getTransactionByBlockNumberAndIndex":"archive","eth_getTransactionByHash":"archive","eth_getTransactionCount":"pruned","eth_getTransactionReceipt":"archive","eth_getUncleByBlockHashAndIndex":"pruned","eth_getUncleByBlockNumberAndIndex":"pruned","eth_newBlockFilter":"pruned","eth_newFilter":"pruned","eth_newPendingTransactionFilter":"pruned","eth_protocolVersion":"pruned","eth_sendRawTransaction":"pruned","eth_sendTransaction":"pruned","eth_sign":"pruned","eth_uninstallFilter":"pruned","net_version":"pruned","trace_block":"archive-trace","trace_call":"archive-trace","trace_callMany":"archive-trace","trace_filter":"archive-trace","trace_rawTransaction":"archive-trace","trace_replayBlockTransactions":"archive-trace","trace_replayTransaction":"archive-trace","trace_transaction":"archive-trace","web3_clientVersion":"pruned","web3_sha3":"pruned"}` | | serviceAccount.annotations | Annotations to add to the service account | object | `{}` | | serviceAccount.create | Specifies whether a service account should be created | bool | `true` | | serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | string | `""` | diff --git a/charts/proxyd/README.md.gotmpl b/charts/proxyd/README.md.gotmpl index 6fa116be..687b7ce0 100644 --- a/charts/proxyd/README.md.gotmpl +++ b/charts/proxyd/README.md.gotmpl @@ -41,6 +41,8 @@ The Chart configures 3 backend groups by default: You should assign your backends to the groups that make sense. +**You must have at least one node in every group that is defined.** + Example: ```yaml diff --git a/charts/proxyd/values.yaml b/charts/proxyd/values.yaml index c530f449..b481f757 100644 --- a/charts/proxyd/values.yaml +++ b/charts/proxyd/values.yaml @@ -110,10 +110,46 @@ backends: # -- Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name) rpcMethodMappings: + web3_clientVersion: pruned + web3_sha3: pruned + net_version: pruned + eth_protocolVersion: pruned + eth_coinbase: pruned + eth_gasPrice: pruned + eth_blockNumber: pruned + eth_getBalance: pruned + eth_getStorageAt: pruned + eth_getTransactionCount: pruned + eth_getBlockTransactionCountByHash: pruned + eth_getBlockTransactionCountByNumber: pruned + eth_getCode: pruned + eth_sign: pruned + eth_sendTransaction: pruned + eth_sendRawTransaction: pruned + eth_estimateGas: pruned + eth_getBlockByHash: pruned + eth_getBlockByNumber: pruned + eth_getTransactionByHash: archive + eth_getTransactionByBlockHashAndIndex: archive + eth_getTransactionByBlockNumberAndIndex: archive + eth_getTransactionReceipt: archive + eth_getUncleByBlockHashAndIndex: pruned + eth_getUncleByBlockNumberAndIndex: pruned + eth_newFilter: pruned + eth_newBlockFilter: pruned + eth_newPendingTransactionFilter: pruned + eth_uninstallFilter: pruned + eth_getFilterChanges: pruned + eth_getLogs: pruned eth_call: archive - eth_chainId: pruned - eth_blockNumber: archive trace_block: archive-trace + trace_filter: archive-trace + trace_transaction: archive-trace + trace_call: archive-trace + trace_callMany: archive-trace + trace_rawTransaction: archive-trace + trace_replayBlockTransactions: archive-trace + trace_replayTransaction: archive-trace # -- The configuration template that is rendered by Helm # @default -- See default template in [values.yaml](values.yaml)