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
v3: helm template does not render NOTES.txt #6901
Comments
@vainikkaj Good catch. This looks like it might have been a regression. It seems to have been removed in #5365. @bacongobbler Was this by design or unintentionally? |
@bacongobbler If unintentional, I'll push a PR for it. |
this might've been an unintentional regression. |
ok, will push a pr later or tomorrow morning |
Hey @hickeyma, do you think you'll have time to look into this before we cut 3.0? If not we should probably move this over to 3.1. Thanks! |
I'm keeping my fingers crossed for 3.0 fix 😃 |
@bacongobbler Sorry but due to some unexpected events, I have unable to get push it. After talking on slack, I will leave it to you as you said you might get it in. |
I tried to fix this but found a nuance we need to talk about first. This is why I'm moving it to 3.1.0. In Helm v2 when running In Helm v2 when running In Helm v3 the rendering process was based around the install process rather than a separate flow like Helm v2. In a deeply nested part of Helm the notes are generated and separated from the other manifests. If the sub-chart notes are rendered they are all combined the way helm v2 install presents them. This means we have lost the ability to render each of the notes output as a separate file for I have some questions I would like feedback on...
Feedback on this is appreciated so that we can make sure the experience provided by showing notes works moving forward. |
Given this, I think @mattfarina is right in delaying this to 3.1. Trying to rush something out the door without thinking through the UX would lock us into an anit-pattern from now until Helm 4, since fixing it would require a breaking change. |
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
We haven't heard of any activity/feedback from the OP on this ticket, so I'm going to remove this from the 3.1.0 milestone until further feedback to the concerns raised from the other maintainers have been addressed. Thanks! |
As a temporary workaround, you can run the following command : helm install chart --dry-run --generate-name This will render the NOTES.txt file. |
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com> (cherry picked from commit ab79732)
rancher/rancher#26999 we attempted to use the work around provided by @ttauveron but since --dry-run doesn't support CRDs we are still having difficulty displaying notes for all templates - would like to see |
Yes would also like to see this, do we know when it can be fixed for template? |
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. |
Bump |
Bump. It would be useful to test this in |
Bump |
It is a relevant feature, but I think there is a need to help out drive development about it. Current behavior of
|
If you mean to do so by default, this could break tooling which expects the output of ---
# Source: xxx/templates/service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: xxx
namespace: xxx
---
# Source: xxx/templates/NOTES.txt
# Here is how you use this chart:
# Run: la la la which seems to be tolerated $ helm template xxx | yq e -ojson | jq -s
[
{
"apiVersion": "v1",
"kind": "ServiceAccount",
"metadata": {
"name": "xxx",
"namespace": "xxx"
}
},
null
] |
Whatever we do here, let's consider argoproj/argo-cd#4733 as a use case. It looks like ArgoCD uses 'helm template' and then applies the result, rather than executing helm directly. Looks like both sides want the NOTES.TXT available. |
Any roadmap planned here? |
I also wish there was a way to generate some manifests for any Kubernetes Resources or CRDs during regular install/upgrade/ rollback, but not actually deploy them. Maybe templates with special extension like .generate.yml. These will capture the exact set of .Values and .Capabilities and .Release objects. These could then be referenced in Notes.txt file. The output could go to some output directories that capture the release name and number as seen in |
Actually, I just realized that can declare a manifest template in NOTES.txt and it will not be deployed but will be rendered:
|
Add a NOTES.txt that prints the endpoints that will be usable by the user for interacting with mimir/gem. Currently helm does not support rendering the NOTES for testing. Rage/vote here: helm/helm#6901 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
* Helm: add NOTES.txt Add a NOTES.txt that prints the endpoints that will be usable by the user for interacting with mimir/gem. Currently helm does not support rendering the NOTES for testing. Rage/vote here: helm/helm#6901 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This is a non-breaking proposal that addresses this issue. Add
|
@consideRatio what about |
* Helm: add NOTES.txt Add a NOTES.txt that prints the endpoints that will be usable by the user for interacting with mimir/gem. Currently helm does not support rendering the NOTES for testing. Rage/vote here: helm/helm#6901 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.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. |
For me this issue is still open |
Yes it was closed simply due to lack of activity. It seems
|
/remove stale |
/reopen please |
/reopen |
+1 on this one. We have no way to test the code generated by |
any update on this issue ? |
Helm version:
Steps to recreate:
How feature works in Helm 2.x
The text was updated successfully, but these errors were encountered: