Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charts: split off defaultConfig from [node] config #622

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

pinheadmz
Copy link
Contributor

The config value could be set in both node-defaults.yaml and in network.yaml with the latter clobbering the default. This adds a second value defaultConfig which is concatenated with config so tanks can run bitcoin.conf settings from a combination of:

baseConfig set in values.yaml (all nodes in every warnet)
defaultConfig set in node-defaults.yaml (all nodes in your network)
config set in network.yaml (per-node individual settings)

@@ -187,7 +187,6 @@ def get_messages(tank_a: str, tank_b: str, chain: str):
file_path = f"{base_dir}/{dir_name}/{file}"
# Fetch the file contents from the container
cmd = f"kubectl exec {tank_a} -- cat {file_path}"
import subprocess
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't there a reason this was in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its up top now, i thought that might be what the linter was complaining about since it does not inform me, the guy trying to pass CI, what it was complaining about 🔥

@m3dwards
Copy link
Collaborator

m3dwards commented Oct 1, 2024

I think we should probably include a config section in 6_node network as an example.

@pinheadmz
Copy link
Contributor Author

I think we should probably include a config section in 6_node network as an example.

doen!

@pinheadmz
Copy link
Contributor Author

pinheadmz commented Oct 3, 2024

@m3dwards added a test! I upcycled your existing graph_test to deploy the network it creates and verify that config doesn't clobber defaultConfig in a new project created by the inquirer UI. That test could be expanded to cover more of those warnet create options and use cases too!

@m3dwards
Copy link
Collaborator

m3dwards commented Oct 3, 2024

ACK. Tested and config worked for me.

@m3dwards m3dwards merged commit 81d0297 into bitcoin-dev-project:main Oct 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants