2024-05-07 23:13:00 +03:00
|
|
|
parameters:
|
|
|
|
os: linux
|
2024-05-17 03:37:29 +03:00
|
|
|
continueOnError: true
|
2024-05-07 23:13:00 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.name }}
|
|
|
|
displayName: Cluster - ${{ parameters.name }}
|
|
|
|
steps:
|
2024-08-19 19:51:26 +03:00
|
|
|
- task: AzureCLI@2
|
2024-05-07 23:13:00 +03:00
|
|
|
inputs:
|
|
|
|
azureSubscription: $(ACN_TEST_SERVICE_CONNECTION)
|
|
|
|
scriptLocation: "inlineScript"
|
|
|
|
scriptType: "bash"
|
|
|
|
addSpnToEnvironment: true
|
|
|
|
inlineScript: |
|
|
|
|
set -e
|
|
|
|
echo "Check az version"
|
|
|
|
az version
|
|
|
|
if ${{ lower(contains(parameters.clusterType, 'dualstack')) }}
|
|
|
|
then
|
|
|
|
echo "Install az cli extension preview"
|
|
|
|
az extension add --name aks-preview
|
|
|
|
az extension update --name aks-preview
|
|
|
|
fi
|
|
|
|
mkdir -p ~/.kube/
|
|
|
|
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_TEST) \
|
|
|
|
CLUSTER=${{ parameters.clusterName }} \
|
|
|
|
VM_SIZE=${{ parameters.vmSize }} OS=${{parameters.os}} \
|
|
|
|
|
|
|
|
echo "Cluster successfully created"
|
|
|
|
displayName: Cluster - ${{ parameters.clusterType }}
|
2024-05-17 03:37:29 +03:00
|
|
|
continueOnError: ${{ parameters.continueOnError }}
|