FLPATH-4770 - bump control-plane and add check-website-fixtures workflow - #31
FLPATH-4770 - bump control-plane and add check-website-fixtures workflow#31testetson22 wants to merge 1 commit into
Conversation
… items (#21) The Getting Started tutorials still used the old schema, causing users to get HTTP 400 errors when following the documented steps. The control-plane's catalog item schema was updated (FLPATH-4384) to require `spec.resources` (an array of named resource definitions) instead of the flat `spec.service_type` / `spec.fields` structure. The instance schema now requires `user_values[].resource` to specify which resource each value applies to. ## Changes - Update `small-vm.yaml` example to use the multi-resource schema (`spec.resources[]`) introduced by control-plane PR #11 - Update `my-vm.yaml` example to include the required `resource` field in each `user_values` entry - Add explanatory text about the `resources` and `resource` fields for users following the tutorials ## Dependent PR - dcm-project/cli#31 - bumps `control-plane` dependency so the CLI can serialize the new schema correctly (`dcm-project/cli` branch `FLPATH-4770-fix-user-journey`) ## Test plan - [x] `hugo --minify` builds without errors - [x] Local `hugo server` renders both pages correctly - [x] YAML examples match what the current control-plane API accepts (`spec.resources` required, `user_values[].resource` required) ## Summary by Sourcery Align the Getting Started VM tutorials with the current catalog item and instance schemas. Bug Fixes: - Update the Getting Started catalog item and instance examples to use the current multi-resource schemas, preventing HTTP 400 errors when users follow the tutorials. Enhancements: - Clarify how catalog resources and per-instance resource references work in the single-resource example. Documentation: - Refresh the Getting Started YAML examples and explanatory text for the current control-plane API. Signed-off-by: Thomas Stetson <tstetson@redhat.com>
PR Summary by QodoBump control-plane types and add website-fixture contract validation
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo
1.
|
…ATH-4770) Bump the control-plane dependency so the CLI's generated types include the `Resources` field required by the multi-resource catalog item schema. - Add contract tests (TC-U154, TC-U155) validating documented tutorial YAMLs serialize correctly to the API - Add testdata/website/ fixtures mirroring the Getting Started examples - Add hack/check-website-fixtures.sh + CI workflow to detect drift between local fixtures and upstream docs - Add argument validation (exit 2) and curl retry/timeout resilience to check-website-fixtures.sh - Update README.md and CLAUDE.md examples to use multi-resource schema (spec.resources, user_values[].resource) Co-Authored-By: Cursor AI <noreply@cursor.com> Signed-off-by: Thomas Stetson <tstetson@redhat.com>
bf4fa43 to
1c89c40
Compare
FLPATH-4770: The CLI's
go.modpinnedcontrol-planeto a commit predating the multi-resource schema change (FLPATH-4384). This causedparseInputFileAsto silently drop thespec.resourcesfield during YAML → JSON serialization, making it impossible to create catalog items viadcm catalog item create.check-website-fixtures action is expected to fail until the dcm-project.github.io PR is merged.
Changes
github.com/dcm-project/control-planeto latestmainso the CLI's generated types include theResourcesfield required by the multi-resource catalog item schematestdata/website/fixtures mirroring the Getting Started tutorial exampleshack/check-website-fixtures.shscript + CI workflow to detect drift between local fixtures and the upstream website repoDepends on
dcm-project/dcm-project.github.iobranchFLPATH-4770-fix-user-journey)Test plan
go test ./...passes (151 specs including 2 new contract tests)hack/check-website-fixtures.shcorrectly detects drift (verified locally)hugo --minifyconfirms companion website changes render correctlyRelated