flink-kubernetes-operator icon indicating copy to clipboard operation
flink-kubernetes-operator copied to clipboard

[docs] Adding helm-docs step in CI and README.md

Open kaskol10 opened this issue 3 years ago • 5 comments

What is the purpose of the change

Auto-generate documentation from helm charts into markdown files.

Brief change log

  • Added README.md done with helm-docs
  • Added CI step to verify helm-docs changes are needed.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changes to the CustomResourceDescriptors: no
  • Core observer or reconciler logic that is regularly executed: no

Documentation

  • Does this pull request introduce a new feature? no

kaskol10 avatar Aug 16 '22 08:08 kaskol10

Hi! Could you please explain why you think this is a good addition? In general we should try to keep the README small and link the docs instead.

gyfora avatar Aug 17 '22 11:08 gyfora

Hi! Thank you for your question!

In the current project there is no README from Helm charts and it's needed to deep into the values.yaml from the Helm Chart to check the different values or check the official documentation, for instance the table located here

Using helm-docs tool would auto-generate documentation from helm charts into markdown easily and the CI step would avoid to push Helm changes without update the documentation.

I think this change will increase the Helm project documentation with an easy step and it will allow to explore documentation near to the Helm Chart code. But I understand your point about link the docs

kaskol10 avatar Aug 18 '22 06:08 kaskol10

It would be great to integrate this into the regular docs but the problem I see is that this is not actually “documentation “ .

it only lists the possible config parameters but not what they do.

Even if we don’t always document new parameters at least the current docs explain what they do :)

gyfora avatar Aug 18 '22 06:08 gyfora

The description could be added to the current values.yaml based on the helm-docs documentation and it would be pretty similar to the table description here.

If you think it would be valuable to add a description for each parameter in the README to take this PR into account I can add comments to the values.yaml to have the parameters description in the Helm Chart and in the README.

Happy to collaborate if that makes sense to you

kaskol10 avatar Aug 18 '22 06:08 kaskol10

I think this makes sense but what about the following way:

  1. Add the current parameter descriptions to the values yaml from the docs.
  2. Remove current docs table
  3. Generate docs table with the plugin
  4. Add link to generated docs from main readme

Also I was wondering is this plugin safe to use with the Apache GitHub credentials?

gyfora avatar Aug 18 '22 07:08 gyfora

@kaskol10 could you please address the above comments from @gyfora?

mbalassi avatar Sep 13 '22 14:09 mbalassi

Closing this due to 2 months of inactivity.

mbalassi avatar Oct 17 '22 12:10 mbalassi