Repository navigation
docs(vpc): generate README parameters from values.yaml - #4944
Aleksei Sviridkin (lexfrei) merged 2 commits into
Conversation
The vpc Makefile never passed -r README.md to cozyvalues-gen, unlike every other app, so its Parameters table was never regenerated. It still described subnets as a map after the switch to a list, and the README example, which also feeds the website reference page, fails values.schema.json. Assisted-by: LLM Signed-off-by: Roshan Ramani <[email protected]>
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Document VPC values and provide README to generator packages/apps/vpc/README.md, packages/apps/vpc/Makefile |
The README documents subnet objects with name, cidr, and optional allowSubnets, plus peer and route objects. The example uses a list of named subnets. The generate target passes README.md to cozyvalues-gen with -r. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Suggested reviewers: nbykov0
Merge Risk: 
Minimal · previous review 1779d
-
This documentation-only change makes the VPC README parameters table regenerate from values.yaml and corrects the subnet example. No merge-blocking risk was found.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Repository: cozystack/cozystack/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1663bc36-0cef-439d-9061-2050eada21c9
📒 Files selected for processing: 2
-
packages/apps/vpc/Makefile
packages/apps/vpc/README.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Repository: cozystack/cozystack/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1663bc36-0cef-439d-9061-2050eada21c9
📒 Files selected for processing: 2
-
packages/apps/vpc/Makefilepackages/apps/vpc/README.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
-
Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <[email protected]>
|
Roshan Ramani (@rawsun007) I merged main into your branch (54cc97a) so CI runs against the current base. Your commits are unchanged. |
Aleksei Sviridkin (lexfrei)
left a comment
There was a problem hiding this comment.
Roshan Ramani (@rawsun007) LGTM, CI and E2E are green on this head.
What this PR does
packages/apps/vpc/Makefileis the only app Makefile that callscozyvalues-genwithout-r README.md, and it has been that way since the app was added, so the README's Parameters table was hand-written and never regenerated. It still documentssubnetsasmap[string]objectand omitspeersandroutes, and the README example uses the map form, whichvalues.schema.jsonrejects since #2052 madesubnetsa list. That README is also the source of the website's VPC reference page, so the published example is the invalid one.This adds
-r README.md, regenerates the table with cozyvalues-gen v1.7.0 (the version CI uses), and rewrites the example as a list.make generateinpackages/apps/vpcleaves the CRD and Go types unchanged, and the new example validates against the VPCopenAPISchema. The draft #4813 edits thisvalues.yaml, so once this lands itsmake generatewill update the README as well.Screenshots
Downstream repositories
The website's VPC page is regenerated from this README by the release bot, so it needs no separate change.
Release note
Summary by CodeRabbit