Skip to content

Commit 9612960

Browse files
authored
fix: Add back cluster create/delete for Cilium Nightly Pipeline (#2146)
* fix: Add back cluster create/delete * Addressing Comments
1 parent caa0c8d commit 9612960

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

.pipelines/cni/cilium/nightly-release-test.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ pr: none
22
trigger: none
33

44
stages:
5+
- stage: setup
6+
displayName: Setup
7+
jobs:
8+
- job: env
9+
displayName: Setup
10+
pool:
11+
name: "$(BUILD_POOL_NAME_DEFAULT)"
12+
steps:
13+
- script: |
14+
echo "##vso[task.setvariable variable=commitID;isOutput=true]$(make revision)"
15+
name: "EnvironmentalVariables"
16+
displayName: "Set environmental variables"
17+
condition: always()
18+
519
- stage: init
620
displayName: "Build and Push Cilium Image"
721
jobs:
@@ -40,19 +54,56 @@ stages:
4054
inputs:
4155
containerRegistry: $(CONTAINER_REGISTRY)
4256
command: "logout"
57+
4358
- stage: cilium_nightly
4459
displayName: E2E - Cilium Nightly
60+
dependsOn:
61+
- init
62+
- setup
4563
variables:
4664
GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path
4765
GOBIN: "$(GOPATH)/bin" # Go binaries path
4866
modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking"
67+
commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
4968
jobs:
69+
- template: ../../templates/create-cluster.yaml
70+
parameters:
71+
name: cilium_overlay_nightly
72+
displayName: Cilium on AKS Overlay
73+
clusterType: cilium-overlay-up
74+
clusterName: ciliumnightly-$(commitID)
75+
vmSize: Standard_B2ms
76+
k8sVersion: ""
77+
dependsOn: ""
78+
region: $(LOCATION)
5079
- job: cilium_nightly
80+
displayName: Cilium Overlay Nightly E2E
81+
dependsOn:
82+
- cilium_overlay_nightly
5183
pool:
5284
name: $(BUILD_POOL_NAME_DEFAULT)
5385
steps:
5486
- template: ../../singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml
5587
parameters:
5688
name: "cilium_nightly"
5789
testDropgz: ""
58-
clusterName: "ciliumnightly"
90+
clusterName: ciliumnightly-$(commitID)
91+
- job: delete
92+
displayName: Delete Cluster
93+
condition: always()
94+
dependsOn:
95+
- cilium_nightly
96+
pool:
97+
name: "$(BUILD_POOL_NAME_DEFAULT)"
98+
strategy:
99+
matrix:
100+
cilium_nightly:
101+
name: ciliumnightly
102+
clusterName: overlaynightly
103+
steps:
104+
- template: ../../templates/delete-cluster.yaml
105+
parameters:
106+
name: $(name)
107+
clusterName: $(clusterName)-$(commitID)
108+
region: $(LOCATION)
109+

0 commit comments

Comments
 (0)