1 instantiation of KubernetesResource
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentContext.cs (1)
24
var serviceResource = new
KubernetesResource
(resource.Name, resource, environment);
32 references to KubernetesResource
Aspire.Hosting.Kubernetes (32)
Extensions\ResourceExtensions.cs (17)
11
internal static Deployment ToDeployment(this IResource resource,
KubernetesResource
context)
40
internal static StatefulSet ToStatefulSet(this IResource resource,
KubernetesResource
context)
60
internal static Secret? ToSecret(this IResource resource,
KubernetesResource
context)
91
internal static ConfigMap? ToConfigMap(this IResource resource,
KubernetesResource
context)
118
internal static Service? ToService(this IResource resource,
KubernetesResource
context)
154
private static PodTemplateSpecV1 ToPodTemplateSpec(this IResource resource,
KubernetesResource
context)
174
private static PodTemplateSpecV1 WithPodSpecVolumes(this PodTemplateSpecV1 podTemplateSpec,
KubernetesResource
context)
221
private static ContainerV1 ToContainerV1(this IResource resource,
KubernetesResource
context)
239
private static ContainerV1 WithContainerVolumes(this ContainerV1 container,
KubernetesResource
context)
259
private static ContainerV1 WithContainerPorts(this ContainerV1 container,
KubernetesResource
context)
280
private static ContainerV1 WithContainerImage(this ContainerV1 container,
KubernetesResource
context)
287
private static ContainerV1 WithContainerEntrypoint(this ContainerV1 container,
KubernetesResource
context)
297
private static ContainerV1 WithContainerArgs(this ContainerV1 container,
KubernetesResource
context)
312
private static ContainerV1 WithContainerEnvironmentalVariables(this ContainerV1 container,
KubernetesResource
context)
329
private static ContainerV1 WithContainerSecrets(this ContainerV1 container,
KubernetesResource
context)
346
private static PersistentVolume CreatePersistentVolume(
KubernetesResource
context, VolumeMountV1 volume)
390
private static PersistentVolumeClaim CreatePersistentVolumeClaim(
KubernetesResource
context, VolumeMountV1 volume)
KubernetesEnvironmentContext.cs (4)
11
private readonly Dictionary<IResource,
KubernetesResource
> _kubernetesComponents = [];
15
public async Task<
KubernetesResource
> CreateKubernetesResourceAsync(IResource resource, DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken)
17
if (_kubernetesComponents.TryGetValue(resource, out
var
existingResource))
24
var
serviceResource = new KubernetesResource(resource.Name, resource, environment);
KubernetesInfrastructure.cs (1)
41
var
serviceResource = await environmentContext.CreateKubernetesResourceAsync(r, executionContext, cancellationToken).ConfigureAwait(false);
KubernetesPublishingContext.cs (3)
72
if (resource.GetDeploymentTargetAnnotation(environment)?.DeploymentTarget is
KubernetesResource
serviceResource)
91
private async Task AppendResourceContextToHelmValuesAsync(IResource resource,
KubernetesResource
resourceContext)
100
Dictionary<string,
KubernetesResource
.HelmExpressionWithValue> contextItems,
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 (4)
7
using static Aspire.Hosting.Kubernetes.
KubernetesResource
;
13
internal static async Task<object> ProcessValueAsync(this
KubernetesResource
resource, KubernetesEnvironmentContext context, DistributedApplicationExecutionContext executionContext, object value)
24
var
referencedResource = ep.Resource == resource
54
var
referencedResource = epExpr.Endpoint.Resource == resource