12 references to WithSystemNodePool
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentExtensions.cs (1)
343
return builder.
WithSystemNodePool
(options =>
Aspire.Hosting.Azure.Kubernetes.Tests (11)
AzureKubernetesEnvironmentExtensionsTests.cs (11)
118
var result = aks.
WithSystemNodePool
(pool =>
150
aks.
WithSystemNodePool
(pool =>
197
.
WithSystemNodePool
(pool => pool.OsSku = "AzureLinux");
202
aks.
WithSystemNodePool
(_ => { });
236
aks.
WithSystemNodePool
(_ => { });
256
Assert.Throws<ArgumentNullException>(() => aks.
WithSystemNodePool
((Action<AksNodePoolConfig>)null!));
258
Assert.Throws<ArgumentNullException>(() => nullBuilder.
WithSystemNodePool
(_ => { }));
270
aks.
WithSystemNodePool
(pool => pool.MinCount = 0);
273
aks.
WithSystemNodePool
(pool => pool.MaxCount = 0);
286
Assert.Same(error, Assert.Throws<InvalidOperationException>(() => aks.
WithSystemNodePool
(_ => throw error)));
301
.
WithSystemNodePool
(pool => pool.OsSku = systemOsSku);