Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add assertoor public interface #329

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading