From 741d7ffe00f6ca4e5e0412405d51db50b29a9660 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Thu, 8 Aug 2024 13:54:32 +0200 Subject: [PATCH] feat: add assertoor public interface (#329) --- charts/assertoor/Chart.yaml | 2 +- charts/assertoor/README.md | 3 ++- charts/assertoor/templates/_helpers.tpl | 4 ++++ charts/assertoor/templates/deployment.yaml | 3 +++ charts/assertoor/templates/service.yaml | 4 ++++ charts/assertoor/values.yaml | 6 ++++++ 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/assertoor/Chart.yaml b/charts/assertoor/Chart.yaml index 8ada6ba2..7e91249d 100644 --- a/charts/assertoor/Chart.yaml +++ b/charts/assertoor/Chart.yaml @@ -6,7 +6,7 @@ home: https://github.com/ethpandaops/assertoor sources: - https://github.com/ethpandaops/assertoor type: application -version: 0.0.1 +version: 0.0.2 appVersion: "1.0.0" maintainers: - name: pk910 diff --git a/charts/assertoor/README.md b/charts/assertoor/README.md index 45b18432..891ffed5 100644 --- a/charts/assertoor/README.md +++ b/charts/assertoor/README.md @@ -1,7 +1,7 @@ # assertoor -![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Testing tool that is capable of doing actions and checking conditions on ethereum pos networks. @@ -85,6 +85,7 @@ assertoorTests: | podDisruptionBudget | object | `{}` | Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created | | podLabels | object | `{}` | Pod labels | | priorityClassName | string | `nil` | Pod priority class | +| publicHttpPort | int | `8082` | HTTP port for assertoor public interface | | resources | object | `{}` | Resource requests and limits | | securityContext | object | See `values.yaml` | The security context for pods | | service.type | string | `"ClusterIP"` | Service type | diff --git a/charts/assertoor/templates/_helpers.tpl b/charts/assertoor/templates/_helpers.tpl index 01d5b2d0..5982a775 100644 --- a/charts/assertoor/templates/_helpers.tpl +++ b/charts/assertoor/templates/_helpers.tpl @@ -64,3 +64,7 @@ Create the name of the service account to use {{- define "assertoor.httpPort" -}} {{- printf "8080" -}} {{- end -}} + +{{- define "assertoor.publicHttpPort" -}} +{{- printf "8082" -}} +{{- end -}} diff --git a/charts/assertoor/templates/deployment.yaml b/charts/assertoor/templates/deployment.yaml index 9170a9d6..4069329c 100644 --- a/charts/assertoor/templates/deployment.yaml +++ b/charts/assertoor/templates/deployment.yaml @@ -64,6 +64,9 @@ spec: - name: http containerPort: {{ include "assertoor.httpPort" . }} protocol: TCP + - name: public-http + containerPort: {{ include "assertoor.publicHttpPort" . }} + protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} env: diff --git a/charts/assertoor/templates/service.yaml b/charts/assertoor/templates/service.yaml index 5d048046..162bc6d3 100644 --- a/charts/assertoor/templates/service.yaml +++ b/charts/assertoor/templates/service.yaml @@ -11,6 +11,10 @@ spec: targetPort: http protocol: TCP name: http + - port: {{ include "assertoor.publicHttpPort" . }} + targetPort: public-http + protocol: TCP + name: public-http {{- if .Values.extraPorts }} {{ toYaml .Values.extraPorts | nindent 4}} {{- end }} diff --git a/charts/assertoor/values.yaml b/charts/assertoor/values.yaml index 8fb875ad..f05d5e64 100644 --- a/charts/assertoor/values.yaml +++ b/charts/assertoor/values.yaml @@ -137,6 +137,9 @@ extraEnv: [] # -- HTTP port for assertoor interface httpPort: 8080 +# -- HTTP port for assertoor public interface +publicHttpPort: 8082 + # -- An array of endpoints to use for assertoor # -- executionUrl & consensusUrl are the only required fields endpoints: @@ -180,6 +183,9 @@ config: | server: host: "0.0.0.0" port: {{ .Values.httpPort }} + publicServer: + host: "0.0.0.0" + port: {{ .Values.publicHttpPort }} frontend: enabled: {{ .Values.assertoorFrontendEnabled }} api: