Skip to content

Commit b950b68

Browse files
authored
smart-contract-verifier-http: fix for new http port and config not being read by default (ethpandaops#161)
1 parent 34b6e0b commit b950b68

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

charts/smart-contract-verifier-http/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ home: https://github.com/blockscout/blockscout-rs/tree/main/smart-contract-verif
66
sources:
77
- https://github.com/blockscout/blockscout-rs/tree/main/smart-contract-verifier-http
88
type: application
9-
version: 0.1.1
9+
version: 0.1.2
1010
maintainers:
1111
- name: skylenet
1212

charts/smart-contract-verifier-http/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# smart-contract-verifier-http
33

4-
![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)
4+
![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)
55

66
Smart-contract verification service. Runs as an HTTP server and allows making verification requests through REST API.
77

@@ -22,7 +22,7 @@ Smart-contract verification service. Runs as an HTTP server and allows making ve
2222
| customArgs | list | `[]` | Custom args for the smart-contract-verifier-http container |
2323
| customCommand | list | `[]` | Command replacement for the smart-contract-verifier-http container |
2424
| extraContainers | list | `[]` | Additional containers |
25-
| extraEnv | list | `[]` | Additional env variables |
25+
| extraEnv | list | `[{"name":"SMART_CONTRACT_VERIFIER__CONFIG","value":"/app/config.toml"}]` | Additional env variables |
2626
| extraPorts | list | `[]` | Additional ports. Useful when using extraContainers |
2727
| extraVolumeMounts | list | `[]` | Additional volume mounts |
2828
| extraVolumes | list | `[]` | Additional volumes |

charts/smart-contract-verifier-http/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Create the name of the service account to use
6262
{{- end }}
6363

6464
{{- define "smart-contract-verifier-http.httpPort" -}}
65-
{{- printf "8043" -}}
65+
{{- printf "8050" -}}
6666
{{- end -}}
6767

6868
{{- define "smart-contract-verifier-http.metricsPort" -}}

charts/smart-contract-verifier-http/values.yaml

+8-6
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@ customCommand: [] # Only change this if you need to change the default command
2727
secretEnv:
2828
#SOME_SECRET_ENV_VAR: some-secret
2929

30+
# -- Additional env variables
31+
extraEnv:
32+
- name: SMART_CONTRACT_VERIFIER__CONFIG
33+
value: /app/config.toml
34+
3035
# -- Config file
3136
# @default -- See `values.yaml`
3237
config: |
33-
[server]
34-
addr = "0.0.0.0:8043"
38+
[server.http]
39+
enabled = true
40+
addr = "0.0.0.0:{{ include "smart-contract-verifier-http.httpPort" . }}"
3541
3642
[compilers]
3743
# if omitted, number of CPU cores would be used
@@ -228,10 +234,6 @@ extraVolumeMounts: []
228234
# -- Additional ports. Useful when using extraContainers
229235
extraPorts: []
230236

231-
# -- Additional env variables
232-
extraEnv: []
233-
234-
235237
serviceMonitor:
236238
# -- If true, a ServiceMonitor CRD is created for a prometheus operator
237239
# https://github.com/coreos/prometheus-operator

0 commit comments

Comments
 (0)