Skip to content

Commit

Permalink
[blockscout-proxy-verifier] Adding config file support
Browse files Browse the repository at this point in the history
  • Loading branch information
nzenchik committed May 15, 2024
1 parent f8713d7 commit b74c56f
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
5 changes: 4 additions & 1 deletion charts/blockscout-proxy-verifier/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# ChangeLog

## 1.1.0

- Adding configuration files support

## 1.0.0

- Initial release

2 changes: 1 addition & 1 deletion charts/blockscout-proxy-verifier/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.proxyVerifier.files.enabled }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "blockscout-proxy-verifier.fullname" . }}-configmap
labels:
app: {{ .Release.Name }}
{{- include "blockscout-proxy-verifier.labels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.proxyVerifier.files.list }}
{{ $key }}: {{ toYaml $value | indent 2 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,20 @@ spec:
{{- range $key, $value := .Values.proxyVerifier.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "blockscout-proxy-verifier.fullname" . }}-env
{{- if .Values.proxyVerifier.files.enabled }}
{{- $fullName := include "blockscout-proxy-verifier.fullname" . }}
{{- $mountPath := .Values.proxyVerifier.files.mountPath }}
volumeMounts:
{{- range $key, $value := .Values.proxyVerifier.files.list }}
- mountPath: {{ $mountPath }}/{{ $key }}
name: {{ $fullName }}-configmap
subPath: {{ $key }}
{{- end }}
{{- end }}
{{- if .Values.proxyVerifier.readinessProbe.enabled }}
readinessProbe:
httpGet:
Expand All @@ -77,6 +87,13 @@ spec:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.proxyVerifier.files.enabled }}
volumes:
- configMap:
name: {{ include "blockscout-proxy-verifier.fullname" . }}-configmap
defaultMode: 0777
name: {{ include "blockscout-proxy-verifier.fullname" . }}-configmap
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
10 changes: 7 additions & 3 deletions charts/blockscout-proxy-verifier/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ proxyVerifier:
tag: main
replicaCount: 1

ingress:
ingress:
enabled: false
className: ""
annotations: {}
Expand Down Expand Up @@ -51,7 +51,7 @@ proxyVerifier:
# PROXY_VERIFIER_CHAINS__5__NAME: "Eth Goerli"
# PROXY_VERIFIER_CHAINS__5__api_url: "https://eth-goerli.blockscout.com/"
# PROXY_VERIFIER_CHAINS__5__sensitive_api_key: ""

podAnnotations: {}

podSecurityContext: {}
Expand Down Expand Up @@ -79,12 +79,16 @@ proxyVerifier:
periodSeconds: 30
timeoutSeconds: 5

files:
enabled: false
list: []

service:
type: ClusterIP

serviceMonitor:
portName: metrics
path: /metrics
path: /metrics
enabled: true

serviceAccount:
Expand Down

0 comments on commit b74c56f

Please sign in to comment.