-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/remove mnomenic network difinition for localnode #55
Feature/remove mnomenic network difinition for localnode #55
Conversation
4f1f7a5
to
6c15cdb
Compare
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.
There's a typo on the first commit message, s/mnomecis/mnemonic/
.
{{- if eq $chainID "" }} | ||
{{- required "A valid .Values.dapp.network is required" $network }} | ||
{{- end }} |
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 think this if eq...
is a no-op. Since there's no situation where $chainId == ""
.
But I don't know how a required
function would work in that case, could you test?
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.
your right. Unfortunately, Helm's template engine doesn't have built-in support for conditionally applying required based on the value of another variable.
I think we can remove this whole section.
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 have added a required section inside the dispatcher-deployment. So if the .Values.dapp.network
doesn't define and the .Values.validator.localnode.enabled
doesn't enabled.
The logs before:
Error: INSTALLATION FAILED: template: rollups-node-chart/templates/dispatcher-deployment.yaml:59:122: executing "rollups-node-chart/templates/dispatcher-deployment.yaml" at <"_">: invalid value; expected string
The logs after :
Error: INSTALLATION FAILED: execution error at (rollups-node-chart/templates/dispatcher-deployment.yaml:59:87): A valid .Values.dapp.network is required
6c15cdb
to
a2efc4d
Compare
9b62c4d
to
583abbc
Compare
583abbc
to
27c30d2
Compare
If
localnode
enabled Then do not need to definemnomenic
&network
.