You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
This comment updates automatically when a new frontend build artifact is uploaded.
…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.
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
Document workload binding changes for raw-block storage
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.
Document the classless PersistentVolume requirement
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.
Warn that renaming the claim requires updating workload references
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.
## 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#2140Closes#2133Closes#2110Closes#2104Closes#2103Closes#2098Closes#2094Closes#2092Closes#2085Closes#2081Closes#2078Closes#2073Closes#2070Closes#2069Closes#2068Closes#2064Closes#2051Closes#2044Closes#2022Closes#2014Closes#1997Closes#1972Closes#1967Closes#1963Closes#1959Closes#1936Closes#1904Closes#1902Closes#1862Closes#1835Closes#1829Closes#1809Closes#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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docs-from-codeCopilot initiated issue from dotnet/aspire repo
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents changes from microsoft/aspire#21124
Author:
@mitchdennyTargeting
release/17.0based on the source PR milestone17.0(exact match).Why
The source PR exports the Kubernetes persistent volume
WithConfigurationcallback 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.mdxWithConfiguration/withConfigurationto the configuration methods table.Triggered signals:
integration_readme_changed,pr_body_has_user_facing_section,pr_body_has_cli_flag_mention.