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

Update Helm Values Tutorial to use testscript #393

Merged
merged 2 commits into from
Jan 9, 2025
Merged

Conversation

glarizza
Copy link
Contributor

@glarizza glarizza commented Jan 8, 2025

This PR updates the Helm Values tutorial to use the testscript workflow Jeff outlined in #392. Right now all the code within codeblocks has been moved into testscript so that files are generated, and the MDX file has been updated to import and reference those files. That all works well at the moment.

What's left:

  • Update the testscript so that it actually creates the correct files in the correct places and executes holos render platform.
  • Update any files containing variable data to use update.sh for updates.
  • Implement string sorted testscript execution out of an examples directory (see docs: Add kargo add-on promoter topic #392).

Copy link

cloudflare-workers-and-pages bot commented Jan 8, 2025

Deploying holos with  Cloudflare Pages  Cloudflare Pages

Latest commit: b28c110
Status: ✅  Deploy successful!
Preview URL: https://459d5837.holos.pages.dev
Branch Preview URL: https://gl-update-helm-docs.holos.pages.dev

View logs

@glarizza glarizza changed the title gl/update helm docs [WIP] Update Helm Values Tutorial to use testscript Jan 8, 2025
@glarizza glarizza changed the title [WIP] Update Helm Values Tutorial to use testscript Update Helm Values Tutorial to use testscript Jan 9, 2025
@glarizza glarizza force-pushed the gl/update-helm-docs branch from 7147b30 to ae2f11e Compare January 9, 2025 17:58
@glarizza glarizza force-pushed the gl/update-helm-docs branch from ae2f11e to f5bf4c1 Compare January 9, 2025 19:50
We use this module within our markdown tutorials (like the Helm Values
tutorial) to load in files generated by testscript.
PROBLEM:

The Helm Values tutorial contains a fair bit of code/scripts, and we
need a way to test the steps we recommend to make sure nothing breaks
or slips out of date.

SOLUTION:

* Use `testscript` as a way to automate the execution of the steps in the doc and verify that none of the steps produce errors.
* Update the MDX file to directly reference the files embedded into the testscript.

OUTCOME:

* We have an automated way to perform the steps in the Helm Values document.
* We have unit tests that will fail should any of the commands being executed in the doc fail.
* The doc's MDX file directly references the files within the testscript, so we only need to modify the MDX file to update wording.
@glarizza glarizza force-pushed the gl/update-helm-docs branch from f5bf4c1 to b28c110 Compare January 9, 2025 19:53
@glarizza glarizza merged commit 650636f into main Jan 9, 2025
4 checks passed
@glarizza glarizza deleted the gl/update-helm-docs branch January 9, 2025 20:01
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.

2 participants