Skip to content

Add Kubernetes persistent volume documentation#1328

Merged
mitchdenny merged 3 commits into
release/13.5from
mitchdenny-k8s-persistent-volume-docs
Jul 6, 2026
Merged

Add Kubernetes persistent volume documentation#1328
mitchdenny merged 3 commits into
release/13.5from
mitchdenny-k8s-persistent-volume-docs

Conversation

@mitchdenny

Copy link
Copy Markdown
Member

Summary

Documents the first-class KubernetesPersistentVolumeResource feature merged in microsoft/aspire #16929, targeting the release/13.5 branch.

Changes

  • New pagedeployment/kubernetes/persistent-volumes.mdx: full reference covering AddPersistentVolume, the fluent configuration surface (WithStorageClass, WithCapacity, WithAccessMode, WithVolumeAnnotation), the PersistentVolumeAccessMode values, both binding overloads (name-match and mount-path), the automatic StatefulSet promotion, unbound-volume fallthrough, and generated YAML. C#/TypeScript parity throughout.
  • Integration referenceintegrations/compute/kubernetes.mdx: concise summary and example with a LearnMore pointer to the dedicated page; added to See also.
  • Sidebar — registered under Deployment › Kubernetes.
  • Cross-links — from the Kubernetes deployment overview, clusters guide, and the fundamentals data-persistence page.

Validation

  • pnpm --dir ./src/frontend run lint passes
  • test:unit:docs passes
  • seo-lengths guard passes

Note: these experimental APIs (ASPIRECOMPUTE002) won't appear in the generated AppHost API reference until the next automated update-integrations/.ats.txt sync.

Document the first-class KubernetesPersistentVolumeResource feature
(microsoft/aspire PR #16929): a dedicated Persistent volumes on
Kubernetes page under deployment/kubernetes, a concise pointer in the
Kubernetes integration reference, sidebar wiring, and cross-links from
related Kubernetes and data-persistence pages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 6, 2026 00:04
@mitchdenny mitchdenny requested a review from IEvangelist as a code owner July 6, 2026 00:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds end-to-end documentation for modeling and binding Kubernetes persistent volumes in Aspire, and integrates the new page into the Kubernetes deployment doc set (sidebar + cross-links).

Changes:

  • Adds a new reference page for Kubernetes persistent volumes, including configuration, binding patterns, and sample generated output.
  • Updates the Kubernetes integration doc with a new “Persistent volumes” section and a link to the dedicated page.
  • Adds cross-links from related fundamentals/deployment pages and registers the new page in the Deployment › Kubernetes sidebar.
Show a summary per file
File Description
src/frontend/src/content/docs/integrations/compute/kubernetes.mdx Adds a persistent volumes section with C#/TS examples and a LearnMore link; adds “See also” entry.
src/frontend/src/content/docs/fundamentals/persist-data-volumes.mdx Adds cross-link to the new Kubernetes persistent volumes page.
src/frontend/src/content/docs/deployment/kubernetes/persistent-volumes.mdx New dedicated persistent volumes reference page (configuration surface, binding overloads, YAML excerpts).
src/frontend/src/content/docs/deployment/kubernetes/clusters.mdx Adds “See also” cross-link to persistent volumes page.
src/frontend/src/content/docs/deployment/kubernetes.mdx Adds overview-level pointer and a new LinkCard for persistent volumes.
src/frontend/config/sidebar/deployment.topics.ts Registers the new page under Deployment › Kubernetes in the sidebar.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 6/6 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment thread src/frontend/src/content/docs/deployment/kubernetes/persistent-volumes.mdx Outdated
Comment thread src/frontend/src/content/docs/integrations/compute/kubernetes.mdx
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1328. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1328 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Mitch Denny and others added 2 commits July 6, 2026 11:44
Refocus the opening on the AddPersistentVolume fluent API with a minimal
example up front, rather than the KubernetesPersistentVolumeResource class
name, matching how developers think in terms of AppHost APIs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Correct withDataVolume TS calls to pass an options object
  (withDataVolume({ name: 'pg-data' })) instead of a name string; the
  TypeScript binding takes WithDataVolumeOptions, not a string.
- Clarify the config-method table: in TypeScript the parameter-accepting
  variants are separate methods (withPvStorageClassParam,
  withPvCapacityParam, withVolumeAnnotationParam), not overloads of the
  string methods.

Verified against the shipped Aspire 13.5.0-preview.1 package by compiling
and publishing both examples with the dev CLI.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mitchdenny mitchdenny merged commit 7ddc2cd into release/13.5 Jul 6, 2026
10 checks passed
@mitchdenny mitchdenny deleted the mitchdenny-k8s-persistent-volume-docs branch July 6, 2026 03:12
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