KubeOps.Aspire 11.2.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package KubeOps.Aspire --version 11.2.0
                    
NuGet\Install-Package KubeOps.Aspire -Version 11.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KubeOps.Aspire" Version="11.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KubeOps.Aspire" Version="11.2.0" />
                    
Directory.Packages.props
<PackageReference Include="KubeOps.Aspire" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KubeOps.Aspire --version 11.2.0
                    
#r "nuget: KubeOps.Aspire, 11.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KubeOps.Aspire@11.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KubeOps.Aspire&version=11.2.0
                    
Install as a Cake Addin
#tool nuget:?package=KubeOps.Aspire&version=11.2.0
                    
Install as a Cake Tool

KubeOps.Aspire

KubeOps.Aspire is the .NET Aspire service defaults integration for KubeOps operators. It is the operator-side counterpart to the KubeOps.Aspire.Hosting AppHost integration.

A single call wires up the cross-cutting concerns that Aspire expects from a well-behaved resource:

  • OpenTelemetry — logging, metrics and tracing, including the operator's ActivitySource.
  • OTLP export — enabled automatically when OTEL_EXPORTER_OTLP_ENDPOINT is set (Aspire injects this).
  • Service discovery — so the operator can call other Aspire resources by their logical name.
  • HTTP resilience — a standard resilience handler on all HttpClient instances.
  • Health checks — a default self liveness check.

Usage

using KubeOps.Aspire;

var builder = Host.CreateApplicationBuilder(args);

builder.Services
    .AddKubernetesOperator()
    .RegisterComponents();

builder.AddKubeOpsServiceDefaults();

using var host = builder.Build();
await host.RunAsync();

Call AddKubeOpsServiceDefaults() after AddKubernetesOperator() so the OpenTelemetry service and tracing source names match OperatorSettings.Name and the operator's reconciliation traces are captured. If you must call it earlier, pass the name explicitly (and keep it in sync with OperatorSettings.Name):

builder.AddKubeOpsServiceDefaults("my-operator");

See the .NET Aspire guide for the full picture.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.3.0-prerelease.1 35 6/12/2026
11.2.1-prerelease.5 48 6/12/2026
11.2.1-prerelease.4 39 6/12/2026
11.2.1-prerelease.3 40 6/12/2026
11.2.1-prerelease.2 40 6/12/2026
11.2.1-prerelease.1 52 6/12/2026
11.2.0 119 6/2/2026
11.2.0-prerelease.2 54 6/2/2026
11.2.0-prerelease.1 57 6/2/2026
11.1.1-prerelease.4 63 6/2/2026
11.1.1-prerelease.3 51 6/2/2026

'## [11.2.0](https://github.com/dotnet/dotnet-operator-sdk/compare/v11.1.0...v11.2.0) (2026-06-02)

### Features

* add .NET Aspire integration for KubeOps operators ([#1135](https://github.com/dotnet/dotnet-operator-sdk/issues/1135)) ([52433d8](https://github.com/dotnet/dotnet-operator-sdk/commit/52433d84380388781fbf054122c6e0a8d81b3cbc))

### Bug Fixes

* enable validation rules to also be placed on classes ([#1128](https://github.com/dotnet/dotnet-operator-sdk/issues/1128)) ([0554d6c](https://github.com/dotnet/dotnet-operator-sdk/commit/0554d6c9a810ac09a2e6435ad30eab4cf0a46894)), closes [#1122](https://github.com/dotnet/dotnet-operator-sdk/issues/1122)
* **generator:** use service name for first SAN in certificates ([#1131](https://github.com/dotnet/dotnet-operator-sdk/issues/1131)) ([f7b8462](https://github.com/dotnet/dotnet-operator-sdk/commit/f7b846236fad397052bf87ca5b2ee4060094250b)), closes [#769](https://github.com/dotnet/dotnet-operator-sdk/issues/769)

### Dependencies

* **core:** update aspire monorepo to 13.4.0 ([#1137](https://github.com/dotnet/dotnet-operator-sdk/issues/1137)) ([5af3e06](https://github.com/dotnet/dotnet-operator-sdk/commit/5af3e06e525c8bec74ea7e022ff2e4a6782d49a8))
* **core:** update dependency sonaranalyzer.csharp to 10.27.0.140913 ([#1125](https://github.com/dotnet/dotnet-operator-sdk/issues/1125)) ([5af1c1b](https://github.com/dotnet/dotnet-operator-sdk/commit/5af1c1b12a330e4c4885609a8f2493795c1a92b9))
* **core:** update dependency yamldotnet to v18 ([#1138](https://github.com/dotnet/dotnet-operator-sdk/issues/1138)) ([7da0397](https://github.com/dotnet/dotnet-operator-sdk/commit/7da039720622856cd0d0746968332d1ae8a91676))
* **docs:** update dependency @easyops-cn/docusaurus-search-local to v0.55.2 ([#1134](https://github.com/dotnet/dotnet-operator-sdk/issues/1134)) ([cbaaac5](https://github.com/dotnet/dotnet-operator-sdk/commit/cbaaac57650cf4a2054466e9170768bea0cd9efc))
* **docs:** update react monorepo to v19.2.7 ([#1136](https://github.com/dotnet/dotnet-operator-sdk/issues/1136)) ([a5f86c5](https://github.com/dotnet/dotnet-operator-sdk/commit/a5f86c5125e84f4aa1a229c20947f0deddd8f3af))
* **test:** update dependency microsoft.net.test.sdk to 18.6.0 ([#1126](https://github.com/dotnet/dotnet-operator-sdk/issues/1126)) ([feaad9f](https://github.com/dotnet/dotnet-operator-sdk/commit/feaad9f8ee81d6173efe48c3be50b3f35ebbae6a))
'