14 references to ImagePullPolicy
Aspire.Hosting (8)
ApplicationModel\ContainerPullPolicyAnnotation.cs (1)
36
public required
ImagePullPolicy
ImagePullPolicy { get; set; }
ApplicationModel\ResourceExtensions.cs (2)
639
/// <param name="pullPolicy">The <see cref="
ImagePullPolicy
"/> for the annotation</param>
641
internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out
ImagePullPolicy
? pullPolicy)
ContainerResourceBuilderExtensions.cs (1)
416
public static IResourceBuilder<T> WithImagePullPolicy<T>(this IResourceBuilder<T> builder,
ImagePullPolicy
pullPolicy) where T : ContainerResource
Dcp\DcpExecutor.cs (4)
1139
ImagePullPolicy
.Default => null,
1140
ImagePullPolicy
.Always => ContainerPullPolicy.Always,
1141
ImagePullPolicy
.Missing => ContainerPullPolicy.Missing,
1142
_ => throw new InvalidOperationException($"Unknown pull policy '{Enum.GetName(typeof(
ImagePullPolicy
), pullPolicy)}' for container '{container.Name}'")
Aspire.Hosting.Containers.Tests (3)
ContainerResourceBuilderTests.cs (3)
210
.WithImagePullPolicy(
ImagePullPolicy
.Missing)
211
.WithImagePullPolicy(
ImagePullPolicy
.Always);
215
Assert.Equal(
ImagePullPolicy
.Always, annotation.ImagePullPolicy);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (3)
1174
builder.AddContainer("ExplicitDefault", "container").WithImagePullPolicy(
ImagePullPolicy
.Default);
1175
builder.AddContainer("ExplicitAlways", "container").WithImagePullPolicy(
ImagePullPolicy
.Always);
1176
builder.AddContainer("ExplicitMissing", "container").WithImagePullPolicy(
ImagePullPolicy
.Missing);