Skip to content

Fix Kubernetes ATS duplicate capability exports - #16498

Merged
Sébastien Ros (sebastienros) merged 4 commits into
microsoft:mainfrom
sebastienros:sebros/generate-ats-diffs-failing
Apr 28, 2026
Merged

Sébastien Ros (sebastienros) merged 4 commits into
microsoft:mainfrom
sebastienros:sebros/generate-ats-diffs-failing

Conversation

@sebastienros

@sebastienros Sébastien Ros (sebastienros) commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Copilot AI review requested due to automatic review settings April 27, 2026 23:59
@github-actions

github-actions Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16498

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16498"

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

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 WithSubnet export to avoid colliding with the environment-level WithSubnet.
  • 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.

@github-actions

Copy link
Copy Markdown
Contributor

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.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@sebastienros
Sébastien Ros (sebastienros) merged commit 2101365 into microsoft:main Apr 28, 2026
285 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the sebros/generate-ats-diffs-failing branch April 28, 2026 16:33
@github-actions github-actions Bot added this to the 13.3 milestone Apr 28, 2026
Nell Shamrell-Harrington (nellshamrell) pushed a commit to nellshamrell/aspire that referenced this pull request May 18, 2026
* 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]>
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate ATS diffs is failing

3 participants