Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ steps:
addSpnToEnvironment: true
inlineScript: |
set -ex
if ! [ -z ${K8S_VERSION} ]; then
echo "Default k8s version, $(make -C ./hack/aks vars | grep K8S | cut -d'=' -f 2), is manually set to ${K8S_VERSION}"
export K8S_VER=${K8S_VERSION}
fi
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}
make -C ./hack/aks ${{ parameters.clusterType }} \
AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) \
Expand Down
6 changes: 6 additions & 0 deletions .pipelines/templates/create-cluster.jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
az extension add --name aks-preview
az extension update --name aks-preview
fi

if ! [ -z ${K8S_VERSION} ]; then
echo "Default k8s version, $(make -C ./hack/aks vars | grep K8S | cut -d'=' -f 2), is manually set to ${K8S_VERSION}"
export K8S_VER=${K8S_VERSION}
fi

mkdir -p ~/.kube/
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}

Expand Down
6 changes: 6 additions & 0 deletions .pipelines/templates/create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
az extension add --name aks-preview
az extension update --name aks-preview
fi

if ! [ -z ${K8S_VERSION} ]; then
echo "Default k8s version, $(make -C ./hack/aks vars | grep K8S | cut -d'=' -f 2), is manually set to ${K8S_VERSION}"
export K8S_VER=${K8S_VERSION}
fi

mkdir -p ~/.kube/
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}

Expand Down
1 change: 1 addition & 0 deletions hack/aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ vars: ## Show the input vars configured for the cluster commands
@echo VM_SIZE=$(VM_SIZE)
@echo NODE_COUNT=$(NODE_COUNT)
@echo VMSS_NAME=$(VMSS_NAME)
@echo K8S_VER=$(K8S_VER)


##@ SWIFT Infra
Expand Down
Loading