File: Annotations\HelmChartVersionAnnotation.cs
Web Access
Project: src\src\Aspire.Hosting.Kubernetes\Aspire.Hosting.Kubernetes.csproj (Aspire.Hosting.Kubernetes)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Aspire.Hosting.ApplicationModel;
 
namespace Aspire.Hosting.Kubernetes;
 
/// <summary>
/// An annotation placed on a <see cref="KubernetesEnvironmentResource"/> that specifies
/// the Helm chart version for deployment.
/// </summary>
/// <param name="version">A <see cref="ReferenceExpression"/> representing the chart version value.</param>
public sealed class HelmChartVersionAnnotation(ReferenceExpression version) : IResourceAnnotation
{
    /// <summary>
    /// Gets the Helm chart version as a <see cref="ReferenceExpression"/>.
    /// </summary>
    public ReferenceExpression Version { get; } = version ?? throw new ArgumentNullException(nameof(version));
}