Repository navigation
Fix Kubernetes ATS duplicate capability exports - #16498
Sébastien Ros (sebastienros) merged 4 commits into
Conversation
Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16498Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16498" |
There was a problem hiding this comment.
Pull request overview
Fixes ATS “duplicate capability ID” diagnostics emitted by the Kubernetes and AKS integrations (which were breaking the scheduled Generate ATS Diffs workflow) by assigning explicit, stable ATS export IDs to previously-colliding exports, and updates polyglot AppHost samples to exercise the newly available Helm parameter-based configuration APIs.
Changes:
- Adds explicit
[AspireExport(id, ...)]annotations for HelmChartOptions parameter overloads so they no longer collide with the string overload exports. - Assigns an explicit ATS export ID to the AKS node-pool
WithSubnetexport to avoid colliding with the environment-levelWithSubnet. - Updates TypeScript/Python/Java Kubernetes polyglot AppHosts to call the new Helm “from parameter” methods.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/TypeScript/apphost.ts | Uses new Helm parameter overload methods in the TS validation AppHost. |
| tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/Python/apphost.py | Uses new Helm parameter overload methods in the Python validation AppHost. |
| tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/Java/AppHost.java | Uses new Helm parameter overload methods in the Java validation AppHost. |
| src/Aspire.Hosting.Kubernetes/HelmChartOptions.cs | Adds explicit ATS export IDs for Helm parameter overloads to avoid duplicate capability exports. |
| src/Aspire.Hosting.Azure.Kubernetes/AzureKubernetesEnvironmentExtensions.cs | Adds explicit ATS export ID for node-pool subnet export to avoid collisions with environment subnet export. |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
|
Co-authored-by: Copilot <[email protected]>
2101365
into
microsoft:main
* Fix Kubernetes ATS duplicate capabilities Co-authored-by: Copilot <[email protected]> * Scope Helm option ATS capability IDs Co-authored-by: Copilot <[email protected]> * Fix Kubernetes TypeScript polyglot apphost Co-authored-by: Copilot <[email protected]> * Use union-based Helm ATS exports Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
Description
The scheduled Generate ATS Diffs workflow was failing because the Kubernetes and AKS integrations emitted ATS error diagnostics for duplicate capability IDs. This change gives the conflicting exports stable, explicit ATS IDs while preserving the intended guest method names where the target type disambiguates the call.
It also updates the Kubernetes polyglot apphost samples for TypeScript, Python, and Java to exercise the newly exposed Helm parameter overloads instead of adding generated-code shape tests.
Fixes #16300
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: