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

DEVAI-196: Helm Chart README and JSON Schema generation #26

Conversation

coreydaley
Copy link
Contributor

@coreydaley coreydaley commented Nov 23, 2024

What does this PR do?:

Which issue(s) this PR fixes:

https://issues.redhat.com/browse/DEVAI-278
https://issues.redhat.com/browse/DEVAI-279
https://issues.redhat.com/browse/DEVAI-280
https://issues.redhat.com/browse/DEVAI-282

PR acceptance criteria:

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened and linked to this PR, if they are not in the PR scope due to various constraints.

  • Tested and Verified
  • Documentation (READMEs, Product Docs, Blogs, Education Modules, etc.)

How to test changes / Special notes to the reviewer:

@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch 7 times, most recently from 1781189 to 4cc0ac5 Compare November 23, 2024 02:18
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script has been changed from the original found in the backstage/backstage repository since there is no Chart.lock file for it to find, I have updated it to look for the values.schema.json file instead. I have also fixed a few small linting issues that i will try to also fix upstream.

.gitignore Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On MacOS, installing Python via homebrew is the way to go, and then creating Python virtual environments for each specific project and install any needed dependencies, which will be documented in the CONTRIBUTING.md file, adding env to the .gitignore should help ensure that the created virtual environment does not get pulled into a pull request accidently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This README.md is generated using the helm-docs command using the README.md.gotmpl file, making it probably more useful to leave comments on either this file OR the template file, and not both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is generated using the jsonschema-dereference script using the values.schema.tmpl.json file, so it would make sense to leave comments on this file OR the template file, and not both.

Copy link
Contributor Author

@coreydaley coreydaley Nov 23, 2024

Choose a reason for hiding this comment

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

The comments added to this file are used to generate the descriptions in the table in the README.md file

@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch from 4cc0ac5 to 7705756 Compare November 23, 2024 18:14
@coreydaley coreydaley changed the title [WIP] DEVAI-196: Helm Chart Testing and Linting [WIP] DEVAI-196: Helm Chart Linting Nov 24, 2024
Copy link
Collaborator

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

so far it looks nice, I've only added a couple of minor comments

.pre-commit/jsonschema_dereference.py Outdated Show resolved Hide resolved
@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch 2 times, most recently from a6646e4 to 1aa2ad8 Compare December 2, 2024 19:07
@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch 2 times, most recently from f7724c8 to 5dd01a0 Compare January 16, 2025 02:28
@coreydaley coreydaley changed the title [WIP] DEVAI-196: Helm Chart Linting DEVAI-196: Helm Chart Linting Jan 16, 2025
@coreydaley coreydaley requested a review from thepetk January 16, 2025 02:29
@coreydaley
Copy link
Contributor Author

@thepetk this is ready for another look, thanks!

@coreydaley
Copy link
Contributor Author

@johnmcollier @gabemontero @thepetk ptal, thanks

Copy link
Collaborator

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

I played around with the branch and it deploys fine. I like a lot the two checks we are adding. Some comments for the overall experience:

  • I feel the readme files of pipeline-install and pipeline-setup need to be kept as is. Mostly because they contain information about how someone can install the pipelines and set everything up. With the new content I find it a bit difficult for someone new to feel comfortable to set things up.
  • I like the approach with the gotmpl and tmpl files. I think it would be nice to add instructions on how we can use them (sorry if it is already mentioned and I have missed it :( )

@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch from 5dd01a0 to d3302ea Compare January 16, 2025 18:38
@coreydaley
Copy link
Contributor Author

@thepetk Looks like those README files were getting messed up because of the templating, so i created templates for those also :) Should be good now

@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch from d3302ea to 18c9a9d Compare January 16, 2025 18:43
@coreydaley coreydaley force-pushed the 2024-11-13-implement-helm-chart-testing branch from 18c9a9d to e84560d Compare January 16, 2025 19:23
@coreydaley
Copy link
Contributor Author

@thepetk I have added a CONTRIBUTING.md file that will hopefully satisfy your second comment.

@coreydaley coreydaley changed the title DEVAI-196: Helm Chart Linting DEVAI-196: Helm Chart README and JSON Schema generation Jan 16, 2025
Copy link
Collaborator

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

lgtm

@coreydaley coreydaley merged commit d66d4d0 into redhat-ai-dev:main Jan 17, 2025
2 checks passed
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.

4 participants