-
Notifications
You must be signed in to change notification settings - Fork 7k
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
tpl
function not performant
#8002
Comments
@himmakam Thanks for raising the issue. How many sub-charts in the umbrella chart? I have tested with 30 sub-charts and having a templates folder in the umbrella chart. |
Providing a reproducible case would be great. I am currently working this sprint on |
I did recently uncover an issue where if you use |
@hickeyma I have a total of 120 sub-charts and do not have any nested sub-charts. |
Might be because I use tpl many times in these charts. Also helm install also takes almost 30 to 45 minutes to parse all the 120 sub-charts I have. |
I did a test with a massive chart with hundreds of subcharts. I changed the |
So are we saying helm lint has issue with umbrella chart and having massive sub-charts whereby it is taking 2.5 hrs? Can someone fix this? |
@himmakam I think @technosophos is saying that the
|
ok. so can I know the alternative where helm lint works fine with umbrella and massive sub-charts having this tpl function. I see that upgrade/install/template does not take this much time. Only lint with tpl is the issue. I would like to know if there is any other alternative. |
Is there a plan to fix the performance issue related to tpl in future helm releases? Right now it is becoming very difficult to use this as it takes lot of time. Is there any other alternative for tpl? |
There is no plan to change the way |
Is there any alternative for this, please |
|
We tried replacing tpl function with some other logic, but we are not successful. Basically would like to know what it takes to fix the tpl function. Also would like to know if there are any other alternatives for this so that we can proceed. Please do let me know if you need my sample code to look at it. |
@himmakam Would you be able to show a snippet of how you are using |
Sure. Lets assume that I have this below line in my properties file which needs to be mounted to the pod as part of the configmap - memcache.server.url="https://10.10.11.11/remote-control {{- define "memcacheserverurl" -}} {{- printf "https://%s/remote-control" .Values.global.service_url -}} {{- end -}} And I have an another function, where am parsing all the property files and search for $, replacing with actual value using below logic. {{- $updatedline := regexReplaceAll "\$\{(.*?)\}" Please do let me know if you need more information. |
Basically helm upgrade --install command takes 40 minutes to 1 hour for any update. When I comment the tpl, it just runs in 2 or 3 minutes. I would like to know if it is issue with using tpl function? |
I have already explained that it is DEFINITELY an issue involving If someone wants to take another crack at implementing |
ok. thanks a lot |
tpl
function not performant
Thanks for the feedback @technosophos. I have edited the issue to describe the problem better. It is open if someone in the community would like to try and improve the function. |
Hello! Here is "another crack at implementing I think it is compliant with "still maintaining the security model" as it uses |
See helm#8002 Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
- backport to 3.2.4 See helm#8002 Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
See helm#8002 Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
I have a scenario of having one umbrella chart with many sub-charts as dependencies. When I have the templates folder in umbrella chart, helm lint takes more time like almost 30 to 40 minutes. When this folder is not there, helm lint returns very fast. Can I know the reason.running in debug mode not giving any logs. It is helm v3.
The text was updated successfully, but these errors were encountered: