Skip to content

Commit

Permalink
ci:[CNI] Windows datapath using k8se2e template (#2041)
Browse files Browse the repository at this point in the history
* Initial Commit

* Expensive Datapath

* Tarball Datapath

* Templatize

* Add networking conformance tests
  • Loading branch information
jpayne3506 authored Jul 28, 2023
1 parent 02311fd commit 3658951
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .pipelines/cni/singletenancy/windows-cni-load-test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ parameters:

stages:
- stage: createAKSclusterWindows
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn: ${{ parameters.dependsOn }}
displayName: "Windows AKS Cluster ${{ parameters.cni }}"
jobs:
Expand All @@ -24,6 +26,8 @@ stages:
vmSize: ${{ parameters.vmSize }}
windowsVMSize: ${{ parameters.windowsVMSize }}
- stage: build_images
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn: ${{ parameters.dependsOn }}
displayName: "Build CNI Images"
jobs:
Expand All @@ -45,7 +49,9 @@ stages:
os: $(os)
os_version: $(os_version)
- stage: update_cni
dependsOn:
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn:
- createAKSclusterWindows
- build_images
displayName: "Update CNI on Cluster"
Expand Down Expand Up @@ -80,8 +86,27 @@ stages:
kubectl get pods -A
name: "WaitForCNI"
displayName: "Wait For CNI"
- stage: pod_deployment_windows
- stage: datapath_tests
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn: update_cni
displayName: "Datapath Test - Windows"
jobs:
- template: ../k8s-e2e/k8s-e2e-job-template.yaml
parameters:
sub: $(TEST_SUB_SERVICE_CONNECTION)
clusterName: ${{ parameters.clusterName }}
os: ${{ parameters.os }}
datapath: true
dns: true
portforward: true
hybridWin: true
service: true
hostport: true
- stage: pod_deployment_windows
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn: datapath_tests
displayName: "Pod Deployment"
jobs:
- job: deploy_pods
Expand All @@ -94,6 +119,8 @@ stages:
cni: ${{ parameters.cni }}
iterations: ${WINDOWS_ITERATIONS}
- stage: validate_state_windows
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
dependsOn: pod_deployment_windows
displayName: "Validate State"
jobs:
Expand All @@ -105,6 +132,8 @@ stages:
os: ${{ parameters.os }}
cni: ${{ parameters.cni }}
- stage: delete_resources
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
displayName: "Delete Resources"
dependsOn:
- validate_state_windows
Expand Down

0 comments on commit 3658951

Please sign in to comment.