diff --git a/cluster-autoscaler/cloudprovider/azure/test/Makefile b/cluster-autoscaler/cloudprovider/azure/test/Makefile index 185247a08be3..8d2fb4bd5f4d 100644 --- a/cluster-autoscaler/cloudprovider/azure/test/Makefile +++ b/cluster-autoscaler/cloudprovider/azure/test/Makefile @@ -15,7 +15,7 @@ ARTIFACTS?=_artifacts .PHONY: test-e2e test-e2e: build-e2e - go run github.com/onsi/ginkgo/v2/ginkgo -v --trace --output-dir "$(ARTIFACTS)" --junit-report="junit.e2e_suite.1.xml" e2e -- \ + go run github.com/onsi/ginkgo/v2/ginkgo --tags e2e -v --trace --output-dir "$(ARTIFACTS)" --junit-report="junit.e2e_suite.1.xml" e2e -- \ -resource-group="$$(KUBECONFIG= kubectl get managedclusters -n default -o jsonpath='{.items[0].status.nodeResourceGroup}')" \ -cluster-name="$$(KUBECONFIG= kubectl get cluster -n default -o jsonpath='{.items[0].metadata.name}')" \ -client-id="$$(KUBECONFIG= kubectl get userassignedidentities -n default -o jsonpath='{.items[0].status.clientId}')" \ diff --git a/cluster-autoscaler/cloudprovider/azure/test/e2e/azure_test.go b/cluster-autoscaler/cloudprovider/azure/test/e2e/azure_test.go index deb7b43196f3..896fbab25dbe 100644 --- a/cluster-autoscaler/cloudprovider/azure/test/e2e/azure_test.go +++ b/cluster-autoscaler/cloudprovider/azure/test/e2e/azure_test.go @@ -1,3 +1,5 @@ +//go:build e2e + /* Copyright 2024 The Kubernetes Authors. diff --git a/cluster-autoscaler/cloudprovider/azure/test/e2e/e2e_suite_test.go b/cluster-autoscaler/cloudprovider/azure/test/e2e/e2e_suite_test.go index 5ad9a88bba27..a0d4a3a49ebb 100644 --- a/cluster-autoscaler/cloudprovider/azure/test/e2e/e2e_suite_test.go +++ b/cluster-autoscaler/cloudprovider/azure/test/e2e/e2e_suite_test.go @@ -1,3 +1,5 @@ +//go:build e2e + /* Copyright 2024 The Kubernetes Authors. diff --git a/cluster-autoscaler/cloudprovider/azure/test/templates/cluster-template-prow-aks-aso-cluster-autoscaler.yaml b/cluster-autoscaler/cloudprovider/azure/test/templates/cluster-template-prow-aks-aso-cluster-autoscaler.yaml index c32e2192f5bf..4f06fb38e1fd 100644 --- a/cluster-autoscaler/cloudprovider/azure/test/templates/cluster-template-prow-aks-aso-cluster-autoscaler.yaml +++ b/cluster-autoscaler/cloudprovider/azure/test/templates/cluster-template-prow-aks-aso-cluster-autoscaler.yaml @@ -19,7 +19,6 @@ metadata: name: ${CLUSTER_NAME} namespace: default spec: - version: ${KUBERNETES_VERSION} resources: - apiVersion: containerservice.azure.com/v1api20231001 kind: ManagedCluster @@ -31,6 +30,7 @@ spec: dnsPrefix: ${CLUSTER_NAME} identity: type: SystemAssigned + kubernetesVersion: "${KUBERNETES_VERSION}" location: ${AZURE_LOCATION} networkProfile: networkPlugin: azure @@ -142,7 +142,6 @@ spec: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool name: ${CLUSTER_NAME}-pool0 - version: ${KUBERNETES_VERSION} --- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool @@ -164,6 +163,7 @@ spec: name: ${CLUSTER_NAME} type: VirtualMachineScaleSets vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} + orchestratorVersion: "${KUBERNETES_VERSION}" --- apiVersion: cluster.x-k8s.io/v1beta1 kind: MachinePool @@ -185,7 +185,6 @@ spec: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool name: ${CLUSTER_NAME}-pool1 - version: ${KUBERNETES_VERSION} --- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool @@ -212,6 +211,7 @@ spec: min: "1" type: VirtualMachineScaleSets vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} + orchestratorVersion: "${KUBERNETES_VERSION}" --- apiVersion: cluster.x-k8s.io/v1beta1 kind: MachinePool @@ -233,7 +233,6 @@ spec: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool name: ${CLUSTER_NAME}-pool2 - version: ${KUBERNETES_VERSION} --- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 kind: AzureASOManagedMachinePool @@ -261,6 +260,7 @@ spec: min: "1" type: VirtualMachineScaleSets vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} + orchestratorVersion: "${KUBERNETES_VERSION}" --- apiVersion: v1 kind: Secret