From 24df9cfc4bc21ee4362790dfc93f161cb29d0ef9 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Wed, 12 Jun 2024 14:37:27 +0200 Subject: [PATCH] feat(hermes): update chart to include readiness config --- charts/hermes/Chart.yaml | 4 ++-- charts/hermes/README.md | 4 +++- charts/hermes/templates/deployment.yaml | 4 ++++ charts/hermes/values.yaml | 7 +++++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/charts/hermes/Chart.yaml b/charts/hermes/Chart.yaml index df058bd..9e306c5 100644 --- a/charts/hermes/Chart.yaml +++ b/charts/hermes/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: hermes description: Pyth cross-chain server type: application -version: 1.0.0 -appVersion: v0.5.7 +version: 1.1.0 +appVersion: v0.5.14 diff --git a/charts/hermes/README.md b/charts/hermes/README.md index 7d1df8a..0929cd0 100644 --- a/charts/hermes/README.md +++ b/charts/hermes/README.md @@ -1,6 +1,6 @@ # hermes -![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.5.7](https://img.shields.io/badge/AppVersion-v0.5.7-informational?style=flat-square) +![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.5.14](https://img.shields.io/badge/AppVersion-v0.5.14-informational?style=flat-square) Pyth cross-chain server @@ -10,6 +10,8 @@ Pyth cross-chain server |-----|------|---------|-------------| | affinity | object | `{}` | | | fullnameOverride | string | `""` | | +| hermes.aggregateReadinessMaxAllowedSlotLag | int | `10` | Aggregate readiness max allowed slot lag | +| hermes.aggregateReadinessStalenessThreshold | string | `"30s"` | Aggregate readiness staleness threshold | | hermes.benchmarks.enabled | bool | `true` | Enable benchmarks. Benchmarks endpoint does not support Hermes Beta yet and you need to disable it for that. | | hermes.benchmarks.endpoint | string | `"https://benchmarks.pyth.network"` | Benchmarks endpoint. | | hermes.logLevel | string | `"warn"` | Hermes log level. Valid values are: trace, debug, info, warn, error | diff --git a/charts/hermes/templates/deployment.yaml b/charts/hermes/templates/deployment.yaml index 9472843..b807dcd 100644 --- a/charts/hermes/templates/deployment.yaml +++ b/charts/hermes/templates/deployment.yaml @@ -31,6 +31,10 @@ spec: command: - hermes - run + - --aggregate-readiness-staleness-threshold + - {{ .Values.hermes.aggregateReadinessStalenessThreshold }} + - --aggregate-readiness-max-allowed-slot-lag + - "{{ .Values.hermes.aggregateReadinessMaxAllowedSlotLag }}" - --pythnet-http-addr - {{ required "hermes.pythnetHttpAddr is required" .Values.hermes.pythnetHttpAddr }} - --pythnet-ws-addr diff --git a/charts/hermes/values.yaml b/charts/hermes/values.yaml index b7b7cde..1e0482c 100644 --- a/charts/hermes/values.yaml +++ b/charts/hermes/values.yaml @@ -3,6 +3,13 @@ hermes: # -- Hermes log level. Valid values are: trace, debug, info, warn, error logLevel: warn + + # -- Aggregate readiness staleness threshold + aggregateReadinessStalenessThreshold: 30s + + # -- Aggregate readiness max allowed slot lag + aggregateReadinessMaxAllowedSlotLag: 10 + # -- Pythnet Http RPC address. Must be set. Example: http://1.2.3.4:8899 pythnetHttpAddr: # -- Pythnet Websocket RPC address. Must be set. Example: ws://1.2.3.4:8900