Skip to content

Commit f582a7f

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

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import os
22
import re
3+
import subprocess
34
import sys
45
from datetime import datetime
56
from io import BytesIO
67

78
import click
8-
from urllib3.exceptions import MaxRetryError
9-
109
from test_framework.messages import ser_uint256
1110
from test_framework.p2p import MESSAGEMAP
11+
from urllib3.exceptions import MaxRetryError
1212

1313
from .k8s import get_default_namespace, get_mission
1414
from .process import run_command
@@ -187,7 +187,6 @@ def get_messages(tank_a: str, tank_b: str, chain: str):
187187
file_path = f"{base_dir}/{dir_name}/{file}"
188188
# Fetch the file contents from the container
189189
cmd = f"kubectl exec {tank_a} -- cat {file_path}"
190-
import subprocess
191190

192191
blob = subprocess.run(
193192
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)