From 1faed1585050737c2d05341930a9aac10ff6a18e Mon Sep 17 00:00:00 2001 From: Anish Ramasekar Date: Wed, 10 May 2023 19:34:48 +0000 Subject: [PATCH] ci: remove register_feature and aks-preview Signed-off-by: Anish Ramasekar --- scripts/create-aks-cluster.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scripts/create-aks-cluster.sh b/scripts/create-aks-cluster.sh index 805fe7316..78cc0b1a3 100755 --- a/scripts/create-aks-cluster.sh +++ b/scripts/create-aks-cluster.sh @@ -21,25 +21,8 @@ should_create_aks_cluster() { echo "true" && return } -register_feature() { - # pinning to 0.5.87 because of https://github.com/Azure/azure-cli/issues/23267 - az extension add --name aks-preview --version 0.5.87 - # register enable oidc preview feature - az feature register --namespace Microsoft.ContainerService --name EnableOIDCIssuerPreview > /dev/null - # https://docs.microsoft.com/en-us/azure/aks/windows-container-cli#add-a-windows-server-node-pool-with-containerd-preview - az feature register --namespace Microsoft.ContainerService --name UseCustomizedWindowsContainerRuntime > /dev/null - while [[ "$(az feature list --query "[?contains(name, 'Microsoft.ContainerService/EnableOIDCIssuerPreview')].{Name:name,State:properties.state}" | jq -r '.[].State')" != "Registered" ]] && - [[ "$(az feature list --query "[?contains(name, 'Microsoft.ContainerService/UseCustomizedWindowsContainerRuntime')].{Name:name,State:properties.state}" | jq -r '.[].State')" != "Registered" ]]; do - sleep 20 - done - az provider register --namespace Microsoft.ContainerService -} - main() { if [[ "$(should_create_aks_cluster)" == "true" ]]; then - export -f register_feature - # might take around 20 minutes to register - timeout --foreground 1200 bash -c register_feature echo "Creating an AKS cluster '${CLUSTER_NAME}'" LOCATION="$(get_random_region)" # get the latest patch version of 1.24