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