Skip to content

Commit 48010ea

Browse files
committed
Remove public cluster access push and add env var for AKS_KUBERNETES_VERSION
1 parent b46b29a commit 48010ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/aks-as-mgmt.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ make --directory="${REPO_ROOT}" "${KUBECTL##*/}" "${AZWI##*/}"
3232
export MGMT_CLUSTER_NAME="${MGMT_CLUSTER_NAME:-aks-mgmt-capz-${RANDOM_SUFFIX}}" # management cluster name
3333
export AKS_RESOURCE_GROUP="${AKS_RESOURCE_GROUP:-aks-mgmt-capz-${RANDOM_SUFFIX}}" # resource group name
3434
export AKS_NODE_RESOURCE_GROUP="node-${AKS_RESOURCE_GROUP}"
35-
export KUBERNETES_VERSION="${KUBERNETES_VERSION:-v1.30.2}"
35+
export AKS_KUBERNETES_VERSION="${AKS_KUBERNETES_VERSION:-v1.30.2}"
3636
export AZURE_LOCATION="${AZURE_LOCATION:-westus2}"
3737
export AKS_NODE_VM_SIZE="${AKS_NODE_VM_SIZE:-"Standard_B2s"}"
3838
export AKS_NODE_COUNT="${AKS_NODE_COUNT:-1}"
@@ -65,7 +65,7 @@ main() {
6565
echo "MGMT_CLUSTER_NAME: $MGMT_CLUSTER_NAME"
6666
echo "AKS_RESOURCE_GROUP: $AKS_RESOURCE_GROUP"
6767
echo "AKS_NODE_RESOURCE_GROUP: $AKS_NODE_RESOURCE_GROUP"
68-
echo "KUBERNETES_VERSION: $KUBERNETES_VERSION"
68+
echo "AKS_KUBERNETES_VERSION: $AKS_KUBERNETES_VERSION"
6969
echo "AZURE_LOCATION: $AZURE_LOCATION"
7070
echo "AKS_NODE_VM_SIZE: $AKS_NODE_VM_SIZE"
7171
echo "AZURE_NODE_MACHINE_TYPE: $AZURE_NODE_MACHINE_TYPE"
@@ -112,7 +112,7 @@ create_aks_cluster() {
112112
az aks create --name "${MGMT_CLUSTER_NAME}" \
113113
--resource-group "${AKS_RESOURCE_GROUP}" \
114114
--location "${AZURE_LOCATION}" \
115-
--kubernetes-version "${KUBERNETES_VERSION}" \
115+
--kubernetes-version "${AKS_KUBERNETES_VERSION}" \
116116
--node-count "${AKS_NODE_COUNT}" \
117117
--node-vm-size "${AKS_NODE_VM_SIZE}" \
118118
--node-resource-group "${AKS_NODE_RESOURCE_GROUP}" \

scripts/ci-build-azure-ccm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ main() {
7070
echo "Creating ${AZURE_BLOB_CONTAINER_NAME} storage container"
7171
az storage container create --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login > /dev/null
7272
# if the storage account has public access disabled at the account level this will return 404
73-
AZURE_STORAGE_AUTH_MODE=login az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --public-access container > /dev/null
73+
# AZURE_STORAGE_AUTH_MODE=login az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --public-access container > /dev/null
7474
fi
7575

7676
az storage blob upload --overwrite --container-name "${AZURE_BLOB_CONTAINER_NAME}" --file "${AZURE_CLOUD_PROVIDER_ROOT}/bin/azure-acr-credential-provider" --name "${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/azure-acr-credential-provider" --auth-mode login

scripts/ci-build-kubernetes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ main() {
8080
if [[ "$(az storage container exists --name "${AZURE_BLOB_CONTAINER_NAME}" --query exists --output tsv --auth-mode login)" == "false" ]]; then
8181
echo "Creating ${AZURE_BLOB_CONTAINER_NAME} storage container"
8282
az storage container create --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login > /dev/null
83-
az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login --public-access container > /dev/null
83+
# az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login --public-access container > /dev/null
8484
fi
8585

8686
if [[ "${KUBE_BUILD_CONFORMANCE:-}" =~ [yY] ]]; then

0 commit comments

Comments
 (0)