From 411c655ae3de9165c764de1930af76014da39f16 Mon Sep 17 00:00:00 2001 From: Alima Azamat Date: Fri, 16 May 2025 10:51:39 -0700 Subject: [PATCH] Remove community AKS extension test because no longer valid --- docs/book/src/managed/managedcluster.md | 6 +----- test/e2e/aks_marketplace.go | 14 +------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/docs/book/src/managed/managedcluster.md b/docs/book/src/managed/managedcluster.md index 6e969a6cb48..7abad5d37dd 100644 --- a/docs/book/src/managed/managedcluster.md +++ b/docs/book/src/managed/managedcluster.md @@ -331,11 +331,7 @@ metadata: spec: extensions: - name: my-extension - extensionType: "TraefikLabs.TraefikProxy" - plan: - name: "traefik-proxy" - product: "traefik-proxy" - publisher: "containous" + extensionType: "microsoft.flux" ``` To list all of the available extensions for your cluster as well as its plan details, use the following az cli command: diff --git a/test/e2e/aks_marketplace.go b/test/e2e/aks_marketplace.go index f8f35f4b27b..121fccaefd5 100644 --- a/test/e2e/aks_marketplace.go +++ b/test/e2e/aks_marketplace.go @@ -45,7 +45,6 @@ type AKSMarketplaceExtensionSpecInput struct { } const ( - extensionName = "AKS-marketplace-extension" // Test that upper case name is allowed officialExtensionName = "official-aks-extension" ) @@ -130,7 +129,7 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark }, input.WaitIntervals...).Should(Succeed()) Eventually(checkTaints, input.WaitIntervals...).Should(Succeed()) - By("Adding an official AKS Extension & AKS Marketplace Extension to the AzureManagedControlPlane") + By("Adding an official AKS Extension to the AzureManagedControlPlane") var infraControlPlane = &infrav1.AzureManagedControlPlane{} Eventually(func(g Gomega) { err = mgmtClient.Get(ctx, client.ObjectKey{ @@ -139,15 +138,6 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark }, infraControlPlane) g.Expect(err).NotTo(HaveOccurred()) infraControlPlane.Spec.Extensions = []infrav1.AKSExtension{ - { - Name: extensionName, - ExtensionType: ptr.To("TraefikLabs.TraefikProxy"), - Plan: &infrav1.ExtensionPlan{ - Name: "traefik-proxy", - Product: "traefik-proxy", - Publisher: "containous", - }, - }, { Name: officialExtensionName, ExtensionType: ptr.To("microsoft.flux"), @@ -164,7 +154,6 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark }, input.WaitIntervals...).Should(Succeed()) By("Ensuring the AKS Marketplace Extension is added to the AzureManagedControlPlane") - ensureAKSExtensionAdded(ctx, input, extensionName, "TraefikLabs.TraefikProxy", extensionClient, amcp) ensureAKSExtensionAdded(ctx, input, officialExtensionName, "microsoft.flux", extensionClient, amcp) By("Deleting the AKS Marketplace Extension") @@ -179,7 +168,6 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark }, input.WaitIntervals...).Should(Succeed()) By("Ensuring the AKS Marketplace Extension is deleted from the AzureManagedControlPlane") - ensureAKSExtensionDeleted(ctx, input, extensionName, extensionClient, amcp) ensureAKSExtensionDeleted(ctx, input, officialExtensionName, extensionClient, amcp) By("Restoring initial taints for Windows machine pool")