Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci:[CNI] Windows datapath using k8se2e template #2041

Merged
merged 5 commits into from
Jul 28, 2023
Merged
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 @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to send the sub as a parameter to the templates ?

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