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
helm: Improve the Helm chart documentation. #16469
helm: Improve the Helm chart documentation. #16469
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall, thanks!
Please find a few comments and questions below.
Two additional remarks (that don't necessarily have to be addressed in the current PR):
- I think that
Documentation/helm-values.rst
could be added to.gitattributes
so that GitHub automatically folds its diff by default for reviews, given that it is a generated file? - Do you think we should have a commented header in
Documentation/helm-values.rst
that states that the file is generated, just like forDocumentation/cmdref/cilium-agent.md
for example? That might limit the risk of having contributors opening PRs to edit it directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me.
Please update the description of the PR to document your latest change, and please also document it in your commit log (I would recommend against empty commit logs in general).
Not blocking here, but my preference would even be to have several commits in this PR (one for the helm-docs
image change, one for the doc updates, one for .gitattribute and “auto-generated” header, for example). I find it easier for understanding logical changes.
'helm-docs' has a bug which causes it to include comments belonging to previously-appearing but commented-out fields. A fix has been proposed in norwoodj/helm-docs#99, but hasn't been reviewed yet. While said PR doesn't get merged it's preferable to switch to a fork containing the fix so we can have a proper description for our Helm chart fields. Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
Adding so that GitHub automatically folds its diff by default for reviews given that it is a generated file. Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
Include a comment in 'helm-values.rst' indicating that the file is generated automatically. This will hopefully limit the risk of having contributors opening PRs to edit it directly. Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
Some fields appear in the 'Helm Reference' page without an associated description. This commit aims at fixing that. Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
@@ -1469,7 +1483,7 @@ preflight: | |||
# -- Annotations to be added to preflight pods | |||
podAnnotations: {} | |||
|
|||
# Labels to be added to preflight pods | |||
# -- Labels to be added to thee preflight pod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thou should'st consider speaking 'i a moe recent English, haply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forsooth - thanketh thee f'r noticing t!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this @bmcustodio, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backporting this patch to v1.10 and v1.9 won't be trivial as the Helm doc stuff has moved since the releases. I think we should abandon attempting to backport to v1.8 since our Helm charts were very different and also I don't think we generated anything using Helm doc at the time.
@bmcustodio can you consider making PRs for v1.10 and v1.9 instead of the need-backport
labels please? I think it would save some time to the backporting team.
@kaworu that works for me, I'll remove the tags 👍 |
@bmcustodio Shouldn't there be |
@pchaigno I think so, yes 🤔 Maybe @errordeveloper can chime in? |
I've added the labels. |
helm-docs
has an issue that causes some of our fields to have wrong documentation associated with them (e.g. containing documentation belonging to other, commented-out fields). This PR attempts to fix them by using a fork ofhelm-docs
containing the proposed fix and adjusting what needs to be adjusted to have a minimally readable and correct reference.Goals:
helm-docs
until Consider only the last group of comments starting with '# --'. norwoodj/helm-docs#99 is merged.helm-values.rst
indicating it is automatically generated.helm-values.rst
to.gitattributes
.Non-goals:
.
and some don't, some descriptions use backticks for correct rendering of code, some don't).I think that these non-goals require a big effort and are only ever useful if the introduction of the fork is consensual, so I think we could cover them as part of a subsequent PR. Thoughts?