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
refactor charts #169
refactor charts #169
Conversation
Chart refactoring looks OK. It's worth making a dedicated PR for it. I haven't tried it since I have reservations on the second commit. Just one question, a lot of the newly added templates are wrapped into if statements ("if wait for bootstrap", "if download snapshot"). Did you consider leaving the if statements in the final yaml files for readability? The second commit breaks the "known network" use case: if you want to launch an edo2net or mainnet node, config-generator will run |
I've removed the second commit. I only put it in this PR because it will conflict if I based it off head. Let's consider this one on its own. I'll keep on working on the image one separately. I did consider putting the conditionals in the final YAML files and, in fact, that is how I originally did it. I found it to be less readable and also more repetitive because the same if statements would be repeated in both baker.yaml and node.yaml. |
I tried a zerotier invite and:
|
The above happened on the invite chart and this is the event log for tezos-node statefulset. if you run mkchain with --zerotier-network and --zerotier-token, it will give you a file whatever_invite_values.yaml if you pass this file to helm template, I expect that you will see a duplicate init container in the node staetefulset |
Yes, thanks. I did that and found the offending line. I included the zerotier template twice by default. I then tested again with rpc_auth set to true---and also with the snapshot-downloader. These appear to generate the correct charts, now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I created a zerotier chain with mkchain and was able to spin it up and join it from another workspace, and I have no reason to believe anything else is broken.
name: var-volume | ||
{{- end }} | ||
|
||
{{- define "tezos.container.baker" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I'm very late to the party here but just wanted to throw out, that being only baker is is running baker/endorser, why not have this explicit there. It can still include "tezos.localvars.pod_envvars"
.
Also, was there any more discussion regarding having the if
checks in the templates themselves?
No description provided.