Skip to content

Commit d98edc7

Browse files
committed
chart: set rpcpassword as a value, add to labels for scenarios
1 parent 81d0297 commit d98edc7

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

resources/charts/bitcoincore/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ data:
1111
{{ template "bitcoincore.check_semver" . }}
1212
{{- .Values.baseConfig | nindent 4 }}
1313
rpcport={{ index .Values .Values.chain "RPCPort" }}
14+
rpcpassword={{ .Values.rpcpassword }}
1415
zmqpubrawblock=tcp://0.0.0.0:{{ .Values.ZMQBlockPort }}
1516
zmqpubrawtx=tcp://0.0.0.0:{{ .Values.ZMQTxPort }}
1617
{{- .Values.defaultConfig | nindent 4 }}

resources/charts/bitcoincore/templates/pod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
{{- end }}
1010
chain: {{ .Values.chain }}
1111
RPCPort: "{{ index .Values .Values.chain "RPCPort" }}"
12+
rpcpassword: {{ .Values.rpcpassword }}
1213
app: {{ include "bitcoincore.fullname" . }}
1314
{{- if .Values.collectLogs }}
1415
collect_logs: "true"

resources/charts/bitcoincore/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@ baseConfig: |
124124
fallbackfee=0.00001000
125125
listen=1
126126
rpcuser=user
127-
rpcpassword=password
127+
# rpcpassword MUST be set as a chart value
128128
rpcallowip=0.0.0.0/0
129129
rpcbind=0.0.0.0
130130
rest=1
131131
# rpcport and zmq endpoints are configured by chain in configmap.yaml
132132
133+
rpcpassword: gn0cchi
133134

134135
config: ""
135136

src/warnet/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def run(scenario_file: str, debug: bool, source_dir, additional_args: tuple[str]
205205
"rpc_host": tank.status.pod_ip,
206206
"rpc_port": int(tank.metadata.labels["RPCPort"]),
207207
"rpc_user": "user",
208-
"rpc_password": "password",
208+
"rpc_password": tank.metadata.labels["rpcpassword"],
209209
"init_peers": [],
210210
}
211211
for tank in tankpods

0 commit comments

Comments
 (0)