azure-container-networking/.pipelines/templates/create-cluster-swiftv2.yaml

36 строки
1.2 KiB
YAML
Исходник Обычный вид История

Swiftv2 e2e tests (#2626) * tmp commit to test whether the cluster can be set up. * Resolved merge conflicts. Update the route. * Fix the route. * Remove unnecessary dependency. * Modify the cluster creation. * Swift v2 e2e test structure. * Add variables. * Fix the format and make it a valid yaml. * Add datapath tests for swiftv2. * Link the tests with the pipeline steps. * Update the testing file name. * Remove unnecessary comment. * Fix the pod name * Sleep before checking the pod. * Check the pni after baking time. * Update the vnet name. * Update the variables value. * Update the sub tests use. * Update the cluster name from mt prefix to mta * Add the vm size. * Update the token. * Update the dummy cluster's vnet. * Add a connection test. * Update the test file name. * Add one more pod with delegation network. * Start 2 mtpod. * Add the test for mtpod to mtpod connection. * Include the commented out code for swiftv2 datapath test. * Update the yaml file format. * Update the command to run the swiftv2 tests. * Move tests to the code file. * Update the dummy cluster since the previous one has been auto deleted. * Update the IP of the pod. * Update the host IP in the test part too. * Separate different test stages. * Use mtpnc to grep IP. * Update k to kubectl * Add mtpnc detailed info. * Remove the wrong comments. * Use the script to run the test for now. * Remove unnecessary variables. * Update the cluster creation. * Update parameters. * Remove unnecessary parameters. * Update the testing code part to match the script way. * Remove unnecessary node part. * Remove the tests from script part. * Resolve the lint complaint. * Resume the "Remove AKS Engine storage account usage"
2024-05-07 23:13:00 +03:00
parameters:
os: linux
continueOnError: true
Swiftv2 e2e tests (#2626) * tmp commit to test whether the cluster can be set up. * Resolved merge conflicts. Update the route. * Fix the route. * Remove unnecessary dependency. * Modify the cluster creation. * Swift v2 e2e test structure. * Add variables. * Fix the format and make it a valid yaml. * Add datapath tests for swiftv2. * Link the tests with the pipeline steps. * Update the testing file name. * Remove unnecessary comment. * Fix the pod name * Sleep before checking the pod. * Check the pni after baking time. * Update the vnet name. * Update the variables value. * Update the sub tests use. * Update the cluster name from mt prefix to mta * Add the vm size. * Update the token. * Update the dummy cluster's vnet. * Add a connection test. * Update the test file name. * Add one more pod with delegation network. * Start 2 mtpod. * Add the test for mtpod to mtpod connection. * Include the commented out code for swiftv2 datapath test. * Update the yaml file format. * Update the command to run the swiftv2 tests. * Move tests to the code file. * Update the dummy cluster since the previous one has been auto deleted. * Update the IP of the pod. * Update the host IP in the test part too. * Separate different test stages. * Use mtpnc to grep IP. * Update k to kubectl * Add mtpnc detailed info. * Remove the wrong comments. * Use the script to run the test for now. * Remove unnecessary variables. * Update the cluster creation. * Update parameters. * Remove unnecessary parameters. * Update the testing code part to match the script way. * Remove unnecessary node part. * Remove the tests from script part. * Resolve the lint complaint. * Resume the "Remove AKS Engine storage account usage"
2024-05-07 23:13:00 +03:00
jobs:
- job: ${{ parameters.name }}
displayName: Cluster - ${{ parameters.name }}
steps:
- task: AzureCLI@2
Swiftv2 e2e tests (#2626) * tmp commit to test whether the cluster can be set up. * Resolved merge conflicts. Update the route. * Fix the route. * Remove unnecessary dependency. * Modify the cluster creation. * Swift v2 e2e test structure. * Add variables. * Fix the format and make it a valid yaml. * Add datapath tests for swiftv2. * Link the tests with the pipeline steps. * Update the testing file name. * Remove unnecessary comment. * Fix the pod name * Sleep before checking the pod. * Check the pni after baking time. * Update the vnet name. * Update the variables value. * Update the sub tests use. * Update the cluster name from mt prefix to mta * Add the vm size. * Update the token. * Update the dummy cluster's vnet. * Add a connection test. * Update the test file name. * Add one more pod with delegation network. * Start 2 mtpod. * Add the test for mtpod to mtpod connection. * Include the commented out code for swiftv2 datapath test. * Update the yaml file format. * Update the command to run the swiftv2 tests. * Move tests to the code file. * Update the dummy cluster since the previous one has been auto deleted. * Update the IP of the pod. * Update the host IP in the test part too. * Separate different test stages. * Use mtpnc to grep IP. * Update k to kubectl * Add mtpnc detailed info. * Remove the wrong comments. * Use the script to run the test for now. * Remove unnecessary variables. * Update the cluster creation. * Update parameters. * Remove unnecessary parameters. * Update the testing code part to match the script way. * Remove unnecessary node part. * Remove the tests from script part. * Resolve the lint complaint. * Resume the "Remove AKS Engine storage account usage"
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 }}
continueOnError: ${{ parameters.continueOnError }}