20 references to ImagePullPolicy
Aspire.Hosting (9)
ApplicationModel\ContainerPullPolicyAnnotation.cs (1)
40
public required
ImagePullPolicy
ImagePullPolicy { get; set; }
ApplicationModel\ResourceExtensions.cs (2)
1008
/// <param name="pullPolicy">The <see cref="
ImagePullPolicy
"/> for the annotation</param>
1010
internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out
ImagePullPolicy
? pullPolicy)
ContainerResourceBuilderExtensions.cs (1)
515
public static IResourceBuilder<T> WithImagePullPolicy<T>(this IResourceBuilder<T> builder,
ImagePullPolicy
pullPolicy) where T : ContainerResource
Dcp\DcpExecutor.cs (5)
1828
ImagePullPolicy
.Default => null,
1829
ImagePullPolicy
.Always => ContainerPullPolicy.Always,
1830
ImagePullPolicy
.Missing => ContainerPullPolicy.Missing,
1831
ImagePullPolicy
.Never => ContainerPullPolicy.Never,
1832
_ => 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.Docker (3)
DockerComposeServiceResource.cs (3)
174
ImagePullPolicy
.Always => "always",
175
ImagePullPolicy
.Missing => "missing",
176
ImagePullPolicy
.Never => "never",
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
360
.WithImagePullPolicy(
ImagePullPolicy
.Always);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
1287
builder.AddContainer("ExplicitDefault", "container").WithImagePullPolicy(
ImagePullPolicy
.Default);
1288
builder.AddContainer("ExplicitAlways", "container").WithImagePullPolicy(
ImagePullPolicy
.Always);
1289
builder.AddContainer("ExplicitMissing", "container").WithImagePullPolicy(
ImagePullPolicy
.Missing);
1290
builder.AddContainer("ExplicitNever", "container").WithImagePullPolicy(
ImagePullPolicy
.Never);