12 references to WithSystemNodePool
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentExtensions.cs (1)
370
return builder.
WithSystemNodePool
(options =>
Aspire.Hosting.Azure.Kubernetes.Tests (11)
AzureKubernetesEnvironmentExtensionsTests.cs (11)
121
var result = aks.
WithSystemNodePool
(pool =>
153
aks.
WithSystemNodePool
(pool =>
200
.
WithSystemNodePool
(pool => pool.OsSku = "AzureLinux");
205
aks.
WithSystemNodePool
(_ => { });
239
aks.
WithSystemNodePool
(_ => { });
259
Assert.Throws<ArgumentNullException>(() => aks.
WithSystemNodePool
((Action<AksNodePoolConfig>)null!));
261
Assert.Throws<ArgumentNullException>(() => nullBuilder.
WithSystemNodePool
(_ => { }));
273
aks.
WithSystemNodePool
(pool => pool.MinCount = 0);
276
aks.
WithSystemNodePool
(pool => pool.MaxCount = 0);
289
Assert.Same(error, Assert.Throws<InvalidOperationException>(() => aks.
WithSystemNodePool
(_ => throw error)));
304
.
WithSystemNodePool
(pool => pool.OsSku = systemOsSku);