-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Does chart support numeric conversion tuple syntax? #4876
Comments
Helm uses the go template syntax. |
@mattfarina I've read it, but there's no range loop like I said.So I'm here to ask for help. |
Half way through the variables section it touches on range. See https://golang.org/pkg/text/template/#hdr-Variables. Does that not work for you? |
@mattfarina Thanks. |
I think you want something like a loop. I am not sure of a way to do that today. It might be a good function for Sprig, the template function package Helm uses. |
yeah, bash has a command called You can also define the intervals using three arguments: I think a function that performs similar to For the time being, you can use |
@mattfarina @bacongobbler Thanks a lot.
|
I filed Masterminds/sprig#124 to track this upstream. If you feel like contributing that function @ygqygq2, we'd really appreciate a PR. |
will produce
I wonder if it's a good idea to add this example to |
For me it looks like this does not work with values.
values.yaml contains this
Am I doing something wrong or is this not supported? |
Ok that was embarrassing... :D thanks alot! |
values.yaml
like this:I want a list or tuple between zero and three, then I can use
range
to do someting.0 1 2
How to writer in chart?
The text was updated successfully, but these errors were encountered: