14 references to ImagePullPolicy
Aspire.Hosting (8)
ApplicationModel\ContainerPullPolicyAnnotation.cs (1)
36
public required ImagePullPolicy
ImagePullPolicy
{ get; set; }
ApplicationModel\ResourceExtensions.cs (2)
563
/// <param name="pullPolicy">The <see cref="
ImagePullPolicy
"/> for the annotation</param>
565
internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out
ImagePullPolicy
? pullPolicy)
ContainerResourceBuilderExtensions.cs (1)
412
public static IResourceBuilder<T> WithImagePullPolicy<T>(this IResourceBuilder<T> builder,
ImagePullPolicy
pullPolicy) where T : ContainerResource
Dcp\DcpExecutor.cs (4)
1090
ImagePullPolicy
.Default => null,
1091
ImagePullPolicy
.Always => ContainerPullPolicy.Always,
1092
ImagePullPolicy
.Missing => ContainerPullPolicy.Missing,
1093
_ => 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);