Skip to content

Commit 884d94b

Browse files
committed
answered the call to remove hardcoded values
1 parent 3990a0e commit 884d94b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

resources/charts/fork-observer/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ metadata:
77
data:
88
config.toml: |
99
{{- .Values.configQueryInterval | nindent 4 }}
10-
{{- .Values.baseConfig | nindent 4 }}
10+
{{- tpl .Values.baseConfig . | nindent 4 }}
1111
{{- .Values.config | nindent 8 }}

resources/charts/fork-observer/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ configQueryInterval: |
8282
# Interval for checking for new blocks
8383
query_interval = 20
8484
85+
maxInterestingHeights: 100
86+
8587
baseConfig: |
8688
# Database path of the key value store. Will be created if non-existing.
8789
database_path = "db"
@@ -106,7 +108,7 @@ baseConfig: |
106108
name = "Warnet"
107109
description = "A Warnet"
108110
min_fork_height = 0
109-
max_interesting_heights = 100
111+
max_interesting_heights = {{ .Values.maxInterestingHeights }}
110112
[pool_identification]
111113
enable = false
112114

0 commit comments

Comments
 (0)