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