Skip to content

chore(charts): add helm-docs CI to auto-generate chart READMEs#1259

Open
ferponse wants to merge 3 commits into
opensandbox-group:mainfrom
ferponse:chore/add-helm-docs-ci
Open

chore(charts): add helm-docs CI to auto-generate chart READMEs#1259
ferponse wants to merge 3 commits into
opensandbox-group:mainfrom
ferponse:chore/add-helm-docs-ci

Conversation

@ferponse

@ferponse ferponse commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The chart values.yaml files already follow the helm-docs comment convention (# -- prefix on field descriptions), but helm-docs is not run in CI. This means chart READMEs are either missing or manually maintained and can drift from the actual values.

Closes #1253

Changes

  • Adds .github/workflows/helm-docs.yml — triggers on PRs that touch values.yaml or Chart.yaml, regenerates READMEs and auto-commits them
  • Generates initial README.md for all three charts (opensandbox-controller, opensandbox-server, opensandbox)

How it works

helm-docs reads Chart.yaml for metadata and the # -- annotations in values.yaml to produce a Markdown table of all values. Since the charts already use this convention, no changes to values.yaml are needed — this works immediately.

Example of an existing annotation that gets picked up:

# -- Tolerations for the controller pod
tolerations: []

Notes

  • No changes to chart logic or values — documentation only.
  • READMEs are auto-committed on each PR by the workflow, so they stay in sync without manual effort.
  • The stefanzweifel/git-auto-commit-action action is widely used for this pattern.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 171674fa88

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/helm-docs.yml
Ferran Pons Serra and others added 2 commits July 9, 2026 12:32
Co-authored-by: Atenea Agent <svc_atenea_gitlab@ofidona.net>
Resolve README conflicts in the opensandbox-controller and opensandbox-server charts by regenerating them with helm-docs against the merged chart values (the source of truth), instead of hand-merging generated output. Also refreshes the umbrella opensandbox chart README so all three match helm-docs output.

Co-authored-by: Atenea Agent <svc_atenea_gitlab@ofidona.net>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dafc333b6c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

- name: Install helm-docs
run: |
wget -qO /tmp/helm-docs.tar.gz \
https://github.com/norwoodj/helm-docs/releases/latest/download/helm-docs_Linux_x86_64.tar.gz

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use an existing helm-docs release asset

This download URL does not match the assets published by norwoodj/helm-docs: the latest release assets are versioned, e.g. helm-docs_1.14.2_Linux_x86_64.tar.gz, not helm-docs_Linux_x86_64.tar.gz. As a result, every chart PR will fail in the install step before helm-docs can run; pin a version in the filename or resolve the latest asset name dynamically.

Useful? React with 👍 / 👎.

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Checkout fork PRs from the fork repository

For fork PRs this checkout still defaults repository to the base repo while github.head_ref is only the contributor fork's branch name, so a branch name that does not also exist in the base repo fails checkout before the verify-only fork step can run. Fresh evidence beyond the prior thread: the fork guard starts only later in this workflow, after this unconditional checkout; use the PR head repo for fork checkouts or avoid overriding ref on fork PRs.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/k8s For kubernetes runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(charts): add helm-docs to CI to auto-generate chart READMEs

1 participant