Skip to content

v3: helm template does not render NOTES.txt #6901

Closed as not planned
Closed as not planned

Description

@vainikkaj

Helm version:

$ h3 version
version.BuildInfo{Version:"v3.0.0-rc.3", GitCommit:"2ed206799b451830c68bff30af2a52879b8b937a", GitTreeState:"clean", GoVersion:"go1.13.4"}

Steps to recreate:

$ h3 create foo
Creating foo
$ h3 template foo -s templates/NOTES.txt --notes
Error: unknown flag: --notes
$ tree foo
foo
├── charts
├── Chart.yaml
├── templates
│   ├── deployment.yaml
│   ├── _helpers.tpl
│   ├── ingress.yaml
│   ├── NOTES.txt
│   ├── serviceaccount.yaml
│   ├── service.yaml
│   └── tests
│       └── test-connection.yaml
└── values.yaml

How feature works in Helm 2.x

$ helm template bar -x templates/NOTES.txt --notes
---
# Source: bar/templates/NOTES.txt
1. Get the application URL by running these commands:
 export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=bar,app.kubernetes.io/instance=release-name" -o jsonpath="{.items[0].metadata.name}")
 echo "Visit http://127.0.0.1:8080 to use your application"
 kubectl port-forward $POD_NAME 8080:80

Activity

  1. hickeyma commented on Nov 7, 2019

    @hickeyma
    Contributor

    @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?

  2. added
    v3.x
    on Nov 7, 2019
  3. hickeyma commented on Nov 7, 2019

    @hickeyma
    Contributor

    @bacongobbler If unintentional, I'll push a PR for it.

  4. bacongobbler commented on Nov 7, 2019

    @bacongobbler
    Member

    this might've been an unintentional regression.

  5. added this to the 3.0.0 milestone on Nov 7, 2019
  6. added
    bug
    on Nov 7, 2019
  7. hickeyma commented on Nov 7, 2019

    @hickeyma
    Contributor

    ok, will push a pr later or tomorrow morning

  8. self-assigned this
    on Nov 8, 2019
  9. bacongobbler commented on Nov 11, 2019

    @bacongobbler
    Member

    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!

  10. vainikkaj commented on Nov 11, 2019

    @vainikkaj
    Author

    I'm keeping my fingers crossed for 3.0 fix 😃

  11. hickeyma commented on Nov 12, 2019

    @hickeyma
    Contributor

    @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.

  12. modified the milestones: 3.0.0, 3.1.0 on Nov 12, 2019
  13. mattfarina commented on Nov 12, 2019

    @mattfarina
    Collaborator

    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 helm template with the --notes flag it generates the notes for that chart and all sub-charts. Each is separated like the YAML parts are and the individual source is noted.

    In Helm v2 when running helm install with the --render-subchart-notes all of the notes are combined into one output. For example, if you installed stable/wordpress using that flag the mariadb and wordpress notes would be back to back with no separator. Personally, I find this to be a confusing UX. I only noticed it now because I don't tend to use the --render-subchart-notes flag.

    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 helm template. The feature will not be exactly the same for v3.

    I have some questions I would like feedback on...

    • What, if any, are the impacts of rendering one notes output instead of each of the subcharts separately?
    • Should there be headings between each of the charts/sub-charts when rendering notes? This would affect both helm template and helm install (and other commands)
    • On helm template should the sub-chart notes be hidden behind an addition flag like they are on helm install?

    Feedback on this is appreciated so that we can make sure the experience provided by showing notes works moving forward.

  14. 72 remaining items

  15. added
    v4.x
    and removed
    v3.x
    on Sep 18, 2025
  16. TerryHowe commented on Sep 18, 2025

    @TerryHowe
    Contributor

    This won't make v3, so I changed the label to v4

  17. added a commit that references this issue on Oct 2, 2025
    c38eb65
  18. added a commit that references this issue on Oct 23, 2025
    4ca50f0
  19. added a commit that references this issue on Nov 2, 2025
    d3dcd00
  20. scottrigby commented on Jan 22, 2026

    @scottrigby
    Member

    --render-subcharts-notes does not belong on helm template. It didn’t make sense in Helm 3, it doesn’t make sense in Helm 4, and keeping it around only preserves confusion, not compatibility.

    helm template has a very clear contract: render Kubernetes manifests. Its output is expected to be machine-consumable YAML, often piped directly into tools like kubectl or kustomize.

    NOTES.txt is explicitly outside that contract. It exists to print human-readable guidance after helm install or helm upgrade. While it supports templating, it is not intended to produce Kubernetes resources.

    These two concerns don’t overlap.

    If the goal is to preview NOTES output, Helm already supports that via helm install / helm upgrade --dry-run (client or server), including subchart notes. For existing releases, helm get notes has long covered this use case.

    The Rancher workaround mentioned earlier is obsolete and no longer reflects how Helm is used today.

    The ArgoCD use case mentioned earlier is not applicable to helm template. As Argo maintainer said in argoproj/argo-cd#4733 (comment):

    How does helm template produce the output of notes since it's only supposed to produce apply-able YAML?

    So the issue here isn’t that Helm lacks a way to preview NOTES output, it's that a flag with no meaningful behavior still shows up in helm template help, implying a use case that doesn’t actually exist. As such, this should be closed as not a bug / wontfix, with a follow-up to deprecate and hide the flag from helm template.

  21. added and removed
    help wanted
    bug
    v4.x
    on Jan 22, 2026
  22. ErikEngerd commented on Feb 5, 2026

    @ErikEngerd

    As an alternative I am now using gotpl which provides direct go templating. The code of that github project is very simple, if you would need more helm functions it would not be difficult to extend.

    Generating NOTES.txt can be done using a values.yaml or on the CLI. For instance:

    gotpl mychart-dir/templates/NOTES.txt  -f mychart-dir/values.yaml  \
      --set Values.hostAliases[0].ip=1.2.3.4 \
      --set Values.hostAliases[0].hostnames[0]=example.com
    

    This would effectively use values.yaml with overrides

    hostAliases:
      - ip: 1.2.3.4
        hostnames:
           - example.com 
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions