Skip to content
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

Merged
merged 5 commits into from Jun 25, 2021
Merged

helm: Improve the Helm chart documentation. #16469

merged 5 commits into from Jun 25, 2021

Conversation

bmcustodio
Copy link
Contributor

@bmcustodio bmcustodio commented Jun 8, 2021

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 of helm-docs containing the proposed fix and adjusting what needs to be adjusted to have a minimally readable and correct reference.

Goals:

  • Propose that we use the fork of helm-docs until Consider only the last group of comments starting with '# --'. norwoodj/helm-docs#99 is merged.
  • That all Helm chart fields present in the tables have a readable, correct and meaningful description.
    • I can definitely use a second pair of eyes on this one 🙂
  • Include a comment on helm-values.rst indicating it is automatically generated.
  • For the same reason, add helm-values.rst to .gitattributes.

Non-goals:

  • That all Helm chart fields have an actual description.
  • To fix all inconsistency issues (e.g. some descriptions end with a . and some don't, some descriptions use backticks for correct rendering of code, some don't).
  • To make the tables extra-readable and actually eye-pleasant.

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?

Improve the Helm chart documentation.

@bmcustodio bmcustodio requested review from a team as code owners June 8, 2021 08:35
@bmcustodio bmcustodio requested a review from a team June 8, 2021 08:35
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 8, 2021
Copy link
Member

@qmonnet qmonnet left a 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 for Documentation/cmdref/cilium-agent.md for example? That might limit the risk of having contributors opening PRs to edit it directly?

install/kubernetes/cilium/values.yaml Show resolved Hide resolved
install/kubernetes/cilium/values.yaml Outdated Show resolved Hide resolved
install/kubernetes/cilium/values.yaml Outdated Show resolved Hide resolved
@qmonnet qmonnet changed the title Improve the Helm chart documentation. helm: Improve the Helm chart documentation. Jun 8, 2021
@qmonnet qmonnet added the release-note/misc This PR makes changes that have no direct user impact. label Jun 8, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 8, 2021
@qmonnet qmonnet added the area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. label Jun 8, 2021
@bmcustodio bmcustodio requested a review from a team as a code owner June 8, 2021 10:03
Copy link
Member

@qmonnet qmonnet left a 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>
@bmcustodio bmcustodio requested a review from qmonnet June 8, 2021 11:23
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.
Copy link
Member

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.

Copy link
Contributor Author

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!

Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
@bmcustodio bmcustodio requested a review from qmonnet June 8, 2021 12:47
Copy link
Member

@qmonnet qmonnet left a 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!

@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.9 Jun 8, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.8.11 Jun 8, 2021
@qmonnet qmonnet mentioned this pull request Jun 9, 2021
Copy link
Contributor

@errordeveloper errordeveloper left a 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!

Copy link
Member

@kaworu kaworu left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@kaworu kaworu left a 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.

Documentation/spelling_wordlist.txt Show resolved Hide resolved
@bmcustodio
Copy link
Contributor Author

@kaworu that works for me, I'll remove the tags 👍

@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from master in 1.9.9 Jun 15, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from master in 1.8.11 Jun 15, 2021
@errordeveloper errordeveloper added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 25, 2021
@errordeveloper errordeveloper merged commit 776af64 into cilium:master Jun 25, 2021
@pchaigno
Copy link
Member

@bmcustodio Shouldn't there be backport-done/1.10 and backport-done/1.9 labels here?

@bmcustodio
Copy link
Contributor Author

@pchaigno I think so, yes 🤔 Maybe @errordeveloper can chime in?

@bmcustodio bmcustodio deleted the bruno-helm-chart-documentation-improvements branch June 28, 2021 09:14
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Backport done to v1.9 in 1.9.9 Jun 28, 2021
@pchaigno
Copy link
Member

I've added the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.9.9
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

None yet

6 participants