Skip to content

[docs] Document Kubernetes PVC configuration callbacks (withConfiguration) - #1963

Merged
Mitch Denny (mitchdenny) merged 2 commits into
release/17.0from
docs/pr-21124-40609189241-1-0765e1fb5749b55a
Nov 17, 2026
Merged

Mitch Denny (mitchdenny) merged 2 commits into
release/17.0from
docs/pr-21124-40609189241-1-0765e1fb5749b55a

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21124

Author: @mitchdenny

Targeting release/17.0 based on the source PR milestone 17.0 (exact match).

Why

The source PR exports the Kubernetes persistent volume WithConfiguration callback through ATS, so TypeScript AppHosts can customize generated PVCs. The docs didn't cover this.

Changes

Updated (no new pages): src/frontend/src/content/docs/deployment/kubernetes/persistent-volumes.mdx

  • Added WithConfiguration / withConfiguration to the configuration methods table.
  • Added a "Customize the generated claim" section with C# and TypeScript examples, storage class empty vs. null semantics, callback ordering, bounded TypeScript model, and C#-only features.

Triggered signals: integration_readme_changed, pr_body_has_user_facing_section, pr_body_has_cli_flag_mention.

Generated by PR Documentation Check for #21124 · copilot · auto · 26.5 AIC · ⌖ 1.14 AIC · ⊞ 7.1K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 28, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #1963 artifacts

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

Copy link
Copy Markdown
Member

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: approve

Source used: microsoft/aspire#21124 (merged 2026-10-28)
PR status: draft, mergeable, bot-authored, opened 2026-10-28 — not stale.

Phase A — claims

  • ✅ source PR merged ('Add ATS support for Kubernetes PVC configuration callbacks'); WithConfiguration/withConfiguration callbacks documented.
  • ⚠️ nuance: the 'run in registration order, after fluent settings' sentence was not traced to source.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review November 13, 2026 14:56
Copilot AI balanced review requested due to automatic review settings November 13, 2026 14:56

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.

🟡 Changes recommended

The documentation uses the nonexistent C# type PersistentVolumeClaimV1 instead of the public PersistentVolumeClaim type in the callback signature.

1 open issue
What changed in this PR

Documents Kubernetes persistent volume claim customization for TypeScript AppHosts, alongside the existing C# API, following microsoft/aspire#21124.

Changes:

  • Adds WithConfiguration / withConfiguration to the configuration methods table.
  • Adds C# and TypeScript callback examples.
  • Explains callback ordering, storage class semantics, and language-specific customization limits.
File Description
src/​frontend/​src/​content/​docs/​deployment/​kubernetes/​persistent-volumes.mdx Adds PVC customization examples and behavior guidance.

Review effort: Balanced

Mitch Denny (mitchdenny) added a commit that referenced this pull request Nov 17, 2026
…dance (#2042)

## Summary

<!-- Describe what this pull request changes and why. -->

Consolidate the AKS-specific documentation for Aspire 17.0 into this PR,
targeting `release/17.0`.

- Document existing AKS clusters, scoping, identity/network
prerequisites, private-cluster connectivity, and cleanup behavior:
[microsoft/aspire#20921](microsoft/aspire#20921).
- Document existing registries, cross-resource-group and
cross-subscription references, kubelet `AcrPull`, separate cluster
identities, and migration precautions:
[microsoft/aspire#20919](microsoft/aspire#20919).
- Explain the Standard control-plane tier default, billing and upgrade
implications, and working C# and TypeScript Free-tier overrides:
[microsoft/aspire#20917](microsoft/aspire#20917).
- Document node pool OS SKUs, callback configuration, defaults, and
migration risks; correct stale TypeScript calls on both AKS pages:
[microsoft/aspire#21118](microsoft/aspire#21118).

Supersedes docs PRs #1900 (registry and identities), #1872 (Standard
tier), and #1915 (node pool OS SKU). Their relevant content and review
feedback are incorporated here. Generic Kubernetes PRs #1935 and #1963
are intentionally excluded and unchanged.

The integration reference contains the detailed configuration examples.
The deployment guide explains the defaults and upgrade considerations
and links to those examples instead of duplicating them.
Existing-resource references are explicitly distinguished from
reprovisioning an Aspire-managed cluster.

## Third-party links and affiliations

<!--
List any third-party links added or changed by this pull request and
disclose any
material affiliation with the linked organizations, such as employment,
sponsorship, or ownership. Write "None" if this pull request doesn't add
or
change third-party links.
-->

None. Added external guidance links are first-party Microsoft Learn AKS
documentation: pricing tiers, IMDS restrictions, control-plane role
assignments, pre-created kubelet identities, and OS SKU migration.

## Validation

<!-- List the checks you ran or explain why validation isn't needed. -->

- `git diff --check` — passed.
- `pnpm --dir src/frontend exec vitest run --config vitest.config.ts
tests/unit/twoslash-blocks.vitest.test.ts
tests/unit/api-reference.vitest.test.ts
tests/unit/seo-lengths.vitest.test.ts
tests/unit/apphost-examples.vitest.test.ts` — passed, 66 tests across 4
files.
- `npx tsc --project tsconfig.apphost.json --noEmit` — passed in a
temporary Aspire 17.0 TypeScript AppHost for both the new-cluster and
existing-cluster examples.
- `aspire publish --apphost apphost.mts --output-path ./artifacts
--non-interactive` — passed in the temporary TypeScript AppHost.
Asserted generated Free tier, AzureLinux and Ubuntu OS SKUs, separate
user-assigned identities, registry subscription scope, and removal of
the default ACR module.
- `env 'Parameters__cluster-name=docs-cluster'
'Parameters__cluster-resource-group=docs-cluster-rg'
'Parameters__cluster-subscription=00000000-0000-0000-0000-000000000002'
aspire publish --apphost apphost.mts --output-path ./existing-artifacts
--non-interactive` — passed. Asserted an existing-cluster reference, no
cluster tier/node-pool mutations or replacement identities, and a
separate kubelet registry role module.
- `aspire publish --apphost apphost.cs --output-path ./artifacts
--non-interactive` — passed in a temporary Aspire 17.0 C# AppHost.
Asserted the Free-tier and OS SKU outputs.
- `aspire start --non-interactive --isolated --apphost
src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj --format Json`
and `aspire wait frontend --apphost
src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj
--non-interactive` — passed. The isolated preview remains running for
live-site review.
- Playwright browser checks — both impacted pages render without an
Astro error overlay; C#/TypeScript tabs show the new examples; the
deployment guide's tier link resolves to the integration section;
internal documentation targets exist; all five added Microsoft Learn
guidance URLs return HTTP 200.
- `pnpm --dir src/frontend exec prettier --check
src/content/docs/integrations/cloud/azure/aks/index.mdx
src/content/docs/deployment/kubernetes/aks.mdx` — reports formatting
differences already present in both base files. Avoided unrelated
reformatting, including formatter changes to existing code fences and
indentation.

Source behavior was checked against `microsoft/aspire` `release/17.0` at
`ada71fb1409066a7082f3a80d20a7d848cab15d8`; smoke tests used the
installed Aspire 17.0 SDK and generated TypeScript modules. No Azure
resources were provisioned or destroyed, no local production site build
was run, and no PR was merged. Cloud deployment and in-place cluster
migration remain untested. User review of the live preview is the next
step.

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.

🔵 Needs a closer look

The documentation omits required guidance on pre-provisioned classless volumes, raw-block workload bindings, and updating references after claim renaming, which can prevent the examples from working.

No open issues 🎉

3 previously missed issues

In code that hasn't changed since last review

Low severity Document workload binding changes for raw-block storage

src/​frontend/​src/​content/​docs/​deployment/​kubernetes/​persistent-volumes.mdx:150

Setting volumeMode to Block leaves the workload with filesystem volumeMounts instead of the required volumeDevices, so it cannot use the claim. Document that raw-block storage also requires changing the workload binding.

Low severity Document the classless PersistentVolume requirement

src/​frontend/​src/​content/​docs/​deployment/​kubernetes/​persistent-volumes.mdx:152

The examples set the storage class to an empty string, which disables dynamic provisioning rather than using the default class described in the prerequisites. Without a matching pre-provisioned classless PersistentVolume, the claim remains pending. Please call out that additional requirement here so readers can deploy the example successfully.

Low severity Warn that renaming the claim requires updating workload references

src/​frontend/​src/​content/​docs/​deployment/​kubernetes/​persistent-volumes.mdx:154

The C# callback can change claim.Metadata.Name, but workload bindings derive claimName from the Aspire volume resource before the callback runs. Renaming the generated claim therefore leaves the workload pointing at the old name, preventing it from mounting. Please warn readers that they must update workload references when customizing the claim name.

1 resolved since last review

Review effort: Balanced

@mitchdenny
Mitch Denny (mitchdenny) merged commit 8202b16 into release/17.0 Nov 17, 2026
18 checks passed
@mitchdenny
Mitch Denny (mitchdenny) deleted the docs/pr-21124-40609189241-1-0765e1fb5749b55a branch November 17, 2026 05:06
David Pine (IEvangelist) added a commit that referenced this pull request Nov 17, 2026
## Summary

Consolidates the open `docs-from-code` PRs that cover features from
@IEvangelist's product work or that request their review, all targeting
`release/17.0`, into this single PR. Each PR was checked against its
merged microsoft/aspire source PR and against product `release/17.0`, to
confirm the change shipped in 17.0 and is user-facing rather than an
implementation detail. Accepted text was corrected where the bot's
wording was inaccurate.

| PR(s) | Verdict | Notes |
| --- | --- | --- |
| #2103, #2098, #1967, #2073, #2070 | Accepted with fixes | Go AppHost
conventions, `aspire init`, and VS Code extension. Unrelated e2e test
edits from #2073 were dropped. |
| #1972 | Partially accepted | Only the verified behavior was kept. |
| #2069, #2064, #1829 | Accepted with fixes | Dashboard explore page and
`aspire describe --format Mermaid` |
| #2044 | Partially accepted | The Cards/Home/Graph layout selector text
is outdated, so it was dropped. |
| #1959, #1904, #1835, #1801 | Accepted with fixes | `WithTerminal`
options, the dashboard terminal UX, and TypeScript `configure` |
| #1902 | Accepted with fixes | `dotnet run --operation publish`
guidance |
| #2081 | Accepted with fixes | WSLc limited publish support. The
minimum version is corrected to 3.0.4.0. |
| #2014, #1862, #1809, #1936, #2140, #1997, #2051, #2068, #2022, #1963 |
Accepted with fixes | DCP timeouts, the container tunnel base image,
browser origins, the PVC `WithConfiguration` API, the interaction
service caution, secrets, `aspire update`, and agent init telemetry |
| #2092 | Rejected | Documents implementation details. |
| #2078 | Rejected | Already documented correctly; the proposed text was
wrong. |
| #2110, #2104, #2085, #2094 | Rejected | The product change isn't in
`release/17.0`; it's 17.1-only. Redo these against the next release
branch. |
| #2133 | Rejected for now | Its backport, microsoft/aspire#22219, is
still open, so redo this once it merges. |

Additional consistency fixes:

- **WSLc:** the minimum version is now 3.0.4.0, the source's
`MinimumWslcVersion`, across prerequisites, `aspire doctor`,
configuration, and what's new. The pages now describe limited publish
support and state that Docker Compose isn't supported.
- **`WithTerminal`:** `WithTerminal` and `TerminalOptions` are no longer
`[Experimental]` in 17.0. I removed the stale `ASPIRETERMINAL001`
pragmas and cautions and rewrote the diagnostic page to cover the
terminal APIs that are still experimental.

Closes #2140
Closes #2133
Closes #2110
Closes #2104
Closes #2103
Closes #2098
Closes #2094
Closes #2092
Closes #2085
Closes #2081
Closes #2078
Closes #2073
Closes #2070
Closes #2069
Closes #2068
Closes #2064
Closes #2051
Closes #2044
Closes #2022
Closes #2014
Closes #1997
Closes #1972
Closes #1967
Closes #1963
Closes #1959
Closes #1936
Closes #1904
Closes #1902
Closes #1862
Closes #1835
Closes #1829
Closes #1809
Closes #1801

## Third-party links and affiliations

None. The only added external link is to mermaid.js.org, which the page
already links elsewhere.

## Validation

- I compared each claim with the merged microsoft/aspire source and
checked that it's included in product `release/17.0`, using `gh api
compare` and searches for backport PRs.
- I checked the TypeScript sample against the generated `aspire.d.ts`.
`EndpointReferenceExpression` is an `IValueProvider`.
- I reviewed the full diff by hand for MDX and table formatting,
imports, and anchors. The new `seoTitle` is 58 characters.
- I didn't run any local unit, e2e, or build commands because frontend
dependencies aren't installed locally. CI covers the build, unit, and
e2e checks, including the updated `custom-components.spec.ts` assertion.

---------

Co-authored-by: David Pine <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants