Skip to content

Commit 6873dc0

Browse files
committed
charts: split off defaultConfig from [node] config
1 parent 6c23e2a commit 6873dc0

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

resources/charts/bitcoincore/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ data:
1313
rpcport={{ index .Values .Values.chain "RPCPort" }}
1414
zmqpubrawblock=tcp://0.0.0.0:{{ .Values.ZMQBlockPort }}
1515
zmqpubrawtx=tcp://0.0.0.0:{{ .Values.ZMQTxPort }}
16+
{{- .Values.defaultConfig | nindent 4 }}
1617
{{- .Values.config | nindent 4 }}
1718
{{- range .Values.connect }}
1819
{{- print "connect=" . | nindent 4}}

resources/charts/bitcoincore/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ baseConfig: |
133133
134134
config: ""
135135

136+
defaultConfig: ""
137+
136138
connect: []
137139
loadSnapshot:
138140
enabled: false

resources/networks/6_node_bitcoin/node-defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ image:
2121
# Overrides the image tag whose default is the chart appVersion.
2222
tag: "27.0"
2323

24-
config: |
24+
defaultConfig: |
2525
dns=1
2626
debug=rpc

resources/networks/fork_observer/node-defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ image:
2121
# Overrides the image tag whose default is the chart appVersion.
2222
tag: "27.0"
2323

24-
config: |
24+
defaultConfig: |
2525
dns=1
2626
debug=rpc
2727
rpcauth=forkobserver:1418183465eecbd407010cf60811c6a0$d4e5f0647a63429c218da1302d7f19fe627302aeb0a71a74de55346a25d8057c

src/warnet/bitcoin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import re
3+
import subprocess
34
import sys
45
from datetime import datetime
56
from io import BytesIO
@@ -187,7 +188,6 @@ def get_messages(tank_a: str, tank_b: str, chain: str):
187188
file_path = f"{base_dir}/{dir_name}/{file}"
188189
# Fetch the file contents from the container
189190
cmd = f"kubectl exec {tank_a} -- cat {file_path}"
190-
import subprocess
191191

192192
blob = subprocess.run(
193193
cmd, shell=True, capture_output=True, executable="bash"

test/data/signet/node-defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ chain: signet
88
spec:
99
restartPolicy: Always
1010

11-
config: |
11+
defaultConfig: |
1212
debug=rpc
1313
debug=net
1414
signetchallenge=0014d33b6e11ca95c4edccd8e986434358d79e919730

0 commit comments

Comments
 (0)