com um clique
config-partials-generator
// Generate MDX config reference partials from vCluster JSON schema. Use when automation is skipped for alpha releases or when manually refreshing config docs.
// Generate MDX config reference partials from vCluster JSON schema. Use when automation is skipped for alpha releases or when manually refreshing config docs.
| name | config-partials-generator |
| description | Generate MDX config reference partials from vCluster JSON schema. Use when automation is skipped for alpha releases or when manually refreshing config docs. |
Generates MDX config reference partials from vCluster JSON schema. The CI automation (sync-config-schema.yaml in vcluster repo) skips alpha releases, so manual generation is needed during alpha/early development phases.
Trigger this skill when:
vcluster/_partials/config/ files are stale compared to the vcluster schemavcluster repo (default: ~/loft/vcluster, adjust if different)| File | Purpose |
|---|---|
<VCLUSTER_REPO>/chart/values.schema.json | vCluster JSON schema (source of truth) |
<VCLUSTER_REPO>/chart/values.yaml | Default values |
<VCLUSTER_REPO>/.github/workflows/sync-config-schema.yaml | CI automation (reference for manual steps) |
hack/vcluster/partials/main.go | vCluster MDX partials generator |
hack/platform/partials/main.go | Platform MDX partials generator |
configsrc/vcluster/ | Per-version schema source directories |
configsrc/platform/ | Platform schema source directory |
<VCLUSTER_REPO> defaults to ~/loft/vcluster. Confirm path before starting.
The sync-config-schema.yaml workflow in the vcluster repo:
release eventsconfigsrc/vcluster/main/ and vcluster/_partials/config/configsrc/vcluster/0.33.0/)Manual generation fills the gap for alpha releases.
cd <VCLUSTER_REPO>
git fetch --tags
git checkout main && git pull origin main
Verify the latest tag: git tag --sort=-v:refname | head -5
From the vcluster-docs repo root:
cp <VCLUSTER_REPO>/chart/values.yaml configsrc/vcluster/main/default_values.yaml
cp <VCLUSTER_REPO>/chart/values.schema.json configsrc/vcluster/main/vcluster.schema.json
For versioned docs (RC releases), replace main with X.Y.0:
mkdir -p configsrc/vcluster/X.Y.0/
cp <VCLUSTER_REPO>/chart/values.yaml configsrc/vcluster/X.Y.0/default_values.yaml
cp <VCLUSTER_REPO>/chart/values.schema.json configsrc/vcluster/X.Y.0/vcluster.schema.json
From the vcluster-docs repo root:
go mod tidy && go mod vendor
For main/next docs:
go run hack/vcluster/partials/main.go configsrc/vcluster/main vcluster/_partials/config
For versioned docs:
go run hack/vcluster/partials/main.go configsrc/vcluster/X.Y.0 vcluster_versioned_docs/version-X.Y.0/_partials/config
git diff --stat vcluster/_partials/config/
Expected warnings (safe to ignore):
Skipping path "experimental/isolatedControlPlane" — deprecated pathSkipping path "experimental/genericSync" — deprecated pathSkipping path "controlPlane/distro/k3s" — removed in v0.33+Skipping path "controlPlane/distro/k0s" — removed in v0.33+Update the platform schema reference:
cp <VCLUSTER_REPO>/chart/values.schema.json configsrc/platform/main/vcluster.schema.json
Platform partials generator: Before running, check whether it preserves manual content:
gh pr view 1663 --json state --jq '.state'
If MERGED, safe to run:
go run hack/platform/partials/main.go configsrc/platform/main/vcluster.schema.json
If OPEN, do NOT run — the generator overwrites manually-added sections in API reference docs.
git checkout -b chore/update-config-partials-vX.Y.Z
git add configsrc/ vcluster/_partials/config/
git commit -m "chore: generate vcluster config partials for X.Y alpha"
git push -u origin HEAD
gh pr create --title "chore: generate vcluster config partials for X.Y alpha" --body "..."
The generator produces/updates MDX files under vcluster/_partials/config/:
controlPlane.mdx — control plane top-level configcontrolPlane/distro.mdx — distro configuration (k8s, k3s, k0s, eks)controlPlane/backingStore.mdx — etcd/database backing storecontrolPlane/backingStore/database/embedded.mdxcontrolPlane/backingStore/database/external.mdxvcluster_versioned_docs/ unless explicitly targeting a released versionPlatform Documentation Release Skill
vCluster Documentation Release Skill
Write and edit vCluster Docusaurus documentation. Use this skill when working with .mdx or .md files in the vcluster-docs repository. Handles vale linting, partials discovery, link validation, versioned docs, and release processes.
Archive End-of-Life vCluster documentation versions. Use this skill when creating EOL documentation branches for vCluster or Platform versions. Handles branch creation, Docusaurus configuration, link fixing, Netlify deployment, and main branch updates.
Manages the Kubernetes compatibility matrix data and React component. Use when adding/removing K8s versions, updating conformance test results, or documenting known issues.
Upgrades Docusaurus to latest version in vCluster documentation. Use when upgrading Docusaurus packages from older to newer versions. Handles package updates, compatibility fixes, testing, and rollback procedures.