How to generate generic templates #2902
Replies: 2 comments 1 reply
-
Not with such a complicated template (if statements, etc.). However you can achieve a certain level of complexity by combining values and go templates, see the spring-boot-helm quickstart for details. There's also this presentation from EclipseCon 2023 which describes how JKube works (at the moment) regarding Helm: https://www.youtube.com/watch?v=DvMickoLlXM Notice the difference between the inner and outer loop cycles. k8s:resource for inner loop needs to be able to generate valid YAML files that can be applied directly to the cluster k8s:resource + k8s:helm for the outer loop needs to be able to generate the Helm templates with the appropriate template content. This brings in a set of challenges that we're still trying to overcome. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. What I don't like is to specificy every substitution inside pom.xml : I tried to use helm variables directly but I got a : |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
is it possible to generate a generic template/helm chart by using k8s:resources goal ?
For example by using "helm create" something similar is created for ingress :
So this is almost completely driven by values.yaml.
By using the k8s:resources goal can I achieve something similar ?
I don't want to specify such details during the maven compilation, I want to specify things like hostnames or tsl secret name later.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions