Skip to content

✨ (helm/v2-alpha): Add Notes.txt#5392

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:add-notes
Feb 4, 2026
Merged

✨ (helm/v2-alpha): Add Notes.txt#5392
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:add-notes

Conversation

@camilamacedo86
Copy link
Member

No description provided.

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 25, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Helm chart NOTES.txt scaffold to the helm/v2-alpha plugin so generated charts include a post-install message, and updates docs/testdata accordingly.

Changes:

  • Scaffold templates/NOTES.txt during Helm chart generation (with --force overwrite behavior).
  • Add unit tests for the new Notes template scaffold (Ginkgo suite + specs).
  • Update plugin documentation and generated testdata charts to include NOTES.txt.

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
testdata/project-v4-with-plugins/dist/chart/templates/NOTES.txt Expected generated Helm chart notes output for testdata project.
pkg/plugins/optional/helm/v2alpha/scaffolds/internal/templates/chart-templates/suite_test.go Adds a Ginkgo suite for the charttemplates package tests.
pkg/plugins/optional/helm/v2alpha/scaffolds/internal/templates/chart-templates/notes_test.go Adds unit tests validating Notes scaffold path, overwrite behavior, and template content.
pkg/plugins/optional/helm/v2alpha/scaffolds/internal/templates/chart-templates/notes.go Implements the Notes scaffold that generates templates/NOTES.txt.
pkg/plugins/optional/helm/v2alpha/scaffolds/edit_kustomize.go Wires the new Notes scaffold into the standard chart file generation flow.
docs/book/src/plugins/available/helm-v2-alpha.md Documents the new NOTES.txt behavior and chart structure updates.
docs/book/src/multiversion-tutorial/testdata/project/dist/chart/templates/NOTES.txt Updates tutorial testdata chart output to include NOTES.txt.
docs/book/src/getting-started/testdata/project/dist/chart/templates/NOTES.txt Updates tutorial testdata chart output to include NOTES.txt.
docs/book/src/cronjob-tutorial/testdata/project/dist/chart/templates/NOTES.txt Updates tutorial testdata chart output to include NOTES.txt.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 27, 2026
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 27, 2026
@camilamacedo86
Copy link
Member Author

/override pull-kubebuilder-e2e-k8s-1-35-0
/override pull-kubebuilder-e2e-k8s-1-33-0

flake and not need those tests

@k8s-ci-robot
Copy link
Contributor

@camilamacedo86: Overrode contexts on behalf of camilamacedo86: pull-kubebuilder-e2e-k8s-1-33-0, pull-kubebuilder-e2e-k8s-1-35-0

Details

In response to this:

/override pull-kubebuilder-e2e-k8s-1-35-0
/override pull-kubebuilder-e2e-k8s-1-33-0

flake and not need those tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

| **--manifests** | Path to YAML file containing Kubernetes manifests (default: `dist/install.yaml`) |
| **--output-dir** string | Output directory for chart (default: `dist`) |
| **--force** | Regenerates preserved files except `Chart.yaml` (values.yaml, _helpers.tpl, .helmignore, test-chart.yml) |
| **--force** | Regenerates preserved files except `Chart.yaml` (values.yaml, NOTES.txt, _helpers.tpl, .helmignore, test-chart.yml) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reformat suggestion, following the formatting in docs/book/src/plugins/available/helm-v2-alpha.md

Suggested change
| **--force** | Regenerates preserved files except `Chart.yaml` (values.yaml, NOTES.txt, _helpers.tpl, .helmignore, test-chart.yml) |
| **--force** | Regenerates preserved files except `Chart.yaml` (`values.yaml`, `NOTES.txt`, `_helpers.tpl`, `.helmignore`, `test-chart.yml`) |

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE

Comment on lines +81 to +82
Without --force, the plugin also preserves values.yaml, NOTES.txt, _helpers.tpl, .helmignore, and
.github/workflows/test-chart.yml. All template files in templates/ are always regenerated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Without --force, the plugin also preserves values.yaml, NOTES.txt, _helpers.tpl, .helmignore, and
.github/workflows/test-chart.yml. All template files in templates/ are always regenerated
Without --force, the plugin also preserves `values.yaml`, `NOTES.txt`, `_helpers.tpl`, `.helmignore`, and
`.github/workflows/test-chart.yml`. All template files in templates/ are always regenerated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we cannot do this change, that will break the output for the command. (string will broke)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, got misled by the ** markup

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is all fine.
I think it is good becuase is how we have the same in other places.
But if you see any hall to improvements please feel free to raise a PR

We love contributions and help ❤️
Really thank you

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, mloskot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 4, 2026
@k8s-ci-robot k8s-ci-robot merged commit f63b6f2 into kubernetes-sigs:master Feb 4, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants