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