30 references to KubernetesResource
Aspire.Hosting.Kubernetes (30)
Extensions\ResourceExtensions.cs (17)
11
internal static Deployment ToDeployment(this IResource resource,
KubernetesResource
context)
39
internal static StatefulSet ToStatefulSet(this IResource resource,
KubernetesResource
context)
58
internal static Secret? ToSecret(this IResource resource,
KubernetesResource
context)
89
internal static ConfigMap? ToConfigMap(this IResource resource,
KubernetesResource
context)
116
internal static Service? ToService(this IResource resource,
KubernetesResource
context)
151
private static PodTemplateSpecV1 ToPodTemplateSpec(this IResource resource,
KubernetesResource
context)
171
private static PodTemplateSpecV1 WithPodSpecVolumes(this PodTemplateSpecV1 podTemplateSpec,
KubernetesResource
context)
218
private static ContainerV1 ToContainerV1(this IResource resource,
KubernetesResource
context)
236
private static ContainerV1 WithContainerVolumes(this ContainerV1 container,
KubernetesResource
context)
256
private static ContainerV1 WithContainerPorts(this ContainerV1 container,
KubernetesResource
context)
277
private static ContainerV1 WithContainerImage(this ContainerV1 container,
KubernetesResource
context)
284
private static ContainerV1 WithContainerEntrypoint(this ContainerV1 container,
KubernetesResource
context)
294
private static ContainerV1 WithContainerArgs(this ContainerV1 container,
KubernetesResource
context)
309
private static ContainerV1 WithContainerEnvironmentalVariables(this ContainerV1 container,
KubernetesResource
context)
326
private static ContainerV1 WithContainerSecrets(this ContainerV1 container,
KubernetesResource
context)
343
private static PersistentVolume CreatePersistentVolume(
KubernetesResource
context, VolumeMountV1 volume)
387
private static PersistentVolumeClaim CreatePersistentVolumeClaim(
KubernetesResource
context, VolumeMountV1 volume)
KubernetesEnvironmentContext.cs (3)
11
private readonly Dictionary<IResource,
KubernetesResource
> _kubernetesComponents = [];
15
public async Task<
KubernetesResource
> CreateKubernetesResourceAsync(IResource resource, DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken)
24
var
serviceResource = new KubernetesResource(resource.Name, resource, environment);
KubernetesPublishingContext.cs (3)
85
if (resource.GetDeploymentTargetAnnotation()?.DeploymentTarget is
KubernetesResource
serviceResource)
104
private void AppendResourceContextToHelmValues(IResource resource,
KubernetesResource
resourceContext)
113
Dictionary<string,
KubernetesResource
.HelmExpressionWithValue> contextItems,
KubernetesResource.cs (2)
34
/// <see cref="
KubernetesResource
"/> instances can be associated with either a <see cref="StatefulSet"/> or a <see cref="Deployment"/> resource.
42
/// <see cref="
KubernetesResource
"/> instances can be associated with either a <see cref="StatefulSet"/> or a <see cref="Deployment"/> resource.
KubernetesServiceCustomizationAnnotation.cs (2)
15
public sealed class KubernetesServiceCustomizationAnnotation(Action<
KubernetesResource
> configure) : IResourceAnnotation
20
public Action<
KubernetesResource
> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
KubernetesServiceExtensions.cs (1)
35
public static IResourceBuilder<T> PublishAsKubernetesService<T>(this IResourceBuilder<T> builder, Action<
KubernetesResource
> configure)
KubernetesServiceResourceExtensions.cs (2)
7
using static Aspire.Hosting.Kubernetes.
KubernetesResource
;
13
internal static async Task<object> ProcessValueAsync(this
KubernetesResource
resource, KubernetesEnvironmentContext context, DistributedApplicationExecutionContext executionContext, object value)