Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Actually ignore NOTES.txt #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,18 @@ func renderResources(c *action.Configuration, ch *chart.Chart, values chartutil.
// Sort hooks, manifests, and partials. Only hooks and manifests are returned,
// as partials are not used after renderer.Render. Empty manifests are also
// removed here.
for k, _ := range files {
if strings.HasSuffix(k, "NOTES.txt") {
delete(files, k)
}
}
_, manifests, err := releaseutil.SortManifests(files, c.Capabilities.APIVersions, releaseutil.InstallOrder)
if err != nil {
return b, err
}

for _, m := range manifests {
// skip notes
if !strings.Contains(m.Name, "NOTES.txt") {
fmt.Fprintf(b, "---\n# Source: %s\n%s\n", m.Name, m.Content)
}
fmt.Fprintf(b, "---\n# Source: %s\n%s\n", m.Name, m.Content)
}

return b, nil
Expand Down