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

PM-1506 Helm Docs workflow #188

Closed
wants to merge 1 commit into from
Closed

Conversation

Smorci
Copy link
Contributor

@Smorci Smorci commented Apr 18, 2024

This PR introduces the helm docs job.

The template has been moved here so subsequently every job that checks out the repository has the template.

The job gets the changed directories and then checks if those directories have the Chart.yaml file. If the file exists it executes the helm-docs workflow from the workflows repository.

I might have to merge it even if it is faulty to test it. Does anybody know another way to test this?

@Smorci Smorci self-assigned this Apr 18, 2024
@Smorci Smorci marked this pull request as draft April 18, 2024 12:33
@Smorci Smorci marked this pull request as ready for review April 18, 2024 12:35
Copy link
Collaborator

@simisimis simisimis left a comment

Choose a reason for hiding this comment

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

Approving this so you could continue working on this, however I will want to get back to it, as I think this should be packaged as a local job packaged with that template you're using. And not put that template in a .github dir

@Smorci
Copy link
Contributor Author

Smorci commented Apr 18, 2024

I personally don't think .github is a bad place for a README template that defines how READMEs in the repository look.

I tried looking for solutions to package and use this together wtih the workflow, but I haven't found the desired solution.

I will not merge this, and get everyones opinion, and I will test tomorrow.

@johnmarcou
Copy link
Collaborator

johnmarcou commented Apr 25, 2024

I personally don't think .github is a bad place for a README template that defines how READMEs in the repository look.

I tried looking for solutions to package and use this together wtih the workflow, but I haven't found the desired solution.

I will not merge this, and get everyones opinion, and I will test tomorrow.

I would keep the .github folder for Github related files. If, hypothetically, we would move to another git repo hosting platform, we shouldn't have to reconfigure helm-docs paths.

I suggest to have the global template file at the root of the repository to be applied to all charts, at least for now.
We could use the README.md.gotmpl default name, but I personally have a slight preference for .README.md.gotmpl.

Also, I have noticed that the helm-docs binary --template-files help message is a bit misleading.
It can be then executed from the root of the repo with: helm-docs -t ./README.md.gotmpl or helm-docs -t ./.README.md.gotmpl.

Also, do we really need a custom template at that stage? Would the default template (from the binary) be enough? What would it be missing?

@johnmarcou
Copy link
Collaborator

question: I think the workflow is this PR is not relevant anymore. Should we mark this PR back to draft @Smorci?

@Smorci
Copy link
Contributor Author

Smorci commented Apr 26, 2024

@johnmarcou I am closing this because as discussed we are going to approach the problem from the pre-commit angle.

@Smorci Smorci closed this Apr 26, 2024
@Smorci Smorci deleted the PM-1506-helm-docs-workflow branch April 26, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants