14 references to ImagePullPolicy
Aspire.Hosting (8)
ApplicationModel\ContainerPullPolicyAnnotation.cs (1)
36public required ImagePullPolicy ImagePullPolicy { get; set; }
ApplicationModel\ResourceExtensions.cs (2)
908/// <param name="pullPolicy">The <see cref="ImagePullPolicy"/> for the annotation</param> 910internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out ImagePullPolicy? pullPolicy)
ContainerResourceBuilderExtensions.cs (1)
480public static IResourceBuilder<T> WithImagePullPolicy<T>(this IResourceBuilder<T> builder, ImagePullPolicy pullPolicy) where T : ContainerResource
Dcp\DcpExecutor.cs (4)
1650ImagePullPolicy.Default => null, 1651ImagePullPolicy.Always => ContainerPullPolicy.Always, 1652ImagePullPolicy.Missing => ContainerPullPolicy.Missing, 1653_ => 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.Tests (3)
Dcp\DcpExecutorTests.cs (3)
1186builder.AddContainer("ExplicitDefault", "container").WithImagePullPolicy(ImagePullPolicy.Default); 1187builder.AddContainer("ExplicitAlways", "container").WithImagePullPolicy(ImagePullPolicy.Always); 1188builder.AddContainer("ExplicitMissing", "container").WithImagePullPolicy(ImagePullPolicy.Missing);