-
Notifications
You must be signed in to change notification settings - Fork 534
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
As an user, I want to provide a values.yaml
when the Helm Chart is generated
#2111
Comments
This can be done in a similar way, see the following demo project git-snapshot: https://github.com/marcnuri-demo/jkube-helm/tree/4dbcae55b51608a1aef5fd7ae6d0ba8ce8c580cb Although not exactly what you require, a I'm unsure that this will actually satisfy the The other problem that we face is that we need to try to comply with the inner-loop |
@manusa Thanks. I tried to use your demo to find a workaround by I've not been able to achieve it. This is the output of the
The part that I'm not able to produce is the For reference, I can achieve it with the
(if you want to try it, you have to run it on OpenShift, not on a vanilla k8s) The generated
I tried to use that syntax with your demo:
but the output is not correct:
Is there a syntax to be able to configure arrays in the generated |
OK, I'm more or less grasping your problem now. Support for arrays and maps is not yet here. So the first thing to note is that |
@manusa To be fair, even if there was such a syntax, I still think there is value to let user provide their own I see that similar to the |
Yes, yes. So there are plenty of possible enhancements that can be extracted from this issue. I just want to showcase how the project works so we can devise the best solution(s). |
Component
Kubernetes Maven Plugin
Is your enhancement related to a problem? Please describe
When I use JKube to generate the
values.yaml
for the Helm Chart, the only way (afaik) to specify these values are using<parameter>
in the plug-in configuration.However this mechanism has bugs and limitations. In my case, I want to pass boolean and integers (which is not working) as well as arrays (with a convoluted syntax).
Describe the solution you'd like
Instead, I would like to add the
values.yaml
file directly in my project and use it instead of the<parameters>
.For example, I would like to add a
src/helm/values.yaml
file with the content:and tell JKube to use it with something like
This
<valuesFile>
would be an alternative to the<parameters>
configuration.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: