14 references to ImagePullPolicy
Aspire.Hosting (8)
ApplicationModel\ContainerPullPolicyAnnotation.cs (1)
36
public required
ImagePullPolicy
ImagePullPolicy { get; set; }
ApplicationModel\ResourceExtensions.cs (2)
910
/// <param name="pullPolicy">The <see cref="
ImagePullPolicy
"/> for the annotation</param>
912
internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out
ImagePullPolicy
? pullPolicy)
ContainerResourceBuilderExtensions.cs (1)
480
public static IResourceBuilder<T> WithImagePullPolicy<T>(this IResourceBuilder<T> builder,
ImagePullPolicy
pullPolicy) where T : ContainerResource
Dcp\DcpExecutor.cs (4)
1658
ImagePullPolicy
.Default => null,
1659
ImagePullPolicy
.Always => ContainerPullPolicy.Always,
1660
ImagePullPolicy
.Missing => ContainerPullPolicy.Missing,
1661
_ => throw new InvalidOperationException($"Unknown pull policy '{Enum.GetName(typeof(
ImagePullPolicy
), pullPolicy)}' for container '{container.Name}'")
Aspire.Hosting.Containers.Tests (3)
ContainerResourceBuilderTests.cs (3)
209
.WithImagePullPolicy(
ImagePullPolicy
.Missing)
210
.WithImagePullPolicy(
ImagePullPolicy
.Always);
214
Assert.Equal(
ImagePullPolicy
.Always, annotation.ImagePullPolicy);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (3)
1187
builder.AddContainer("ExplicitDefault", "container").WithImagePullPolicy(
ImagePullPolicy
.Default);
1188
builder.AddContainer("ExplicitAlways", "container").WithImagePullPolicy(
ImagePullPolicy
.Always);
1189
builder.AddContainer("ExplicitMissing", "container").WithImagePullPolicy(
ImagePullPolicy
.Missing);