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