Skip to content

Commit

Permalink
feat: add assertoor public interface (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Aug 8, 2024
1 parent fdfb5d7 commit 741d7ff
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/assertoor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion charts/assertoor/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/assertoor/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
3 changes: 3 additions & 0 deletions charts/assertoor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/assertoor/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/assertoor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 741d7ff

Please sign in to comment.