@@ -4,6 +4,26 @@ trigger: none
4
4
variables :
5
5
- group : ACN-CNI-Pipeline
6
6
7
+ parameters :
8
+ - name : versions
9
+ displayName : K8s Versions
10
+ type : object
11
+ default :
12
+ - ver : ' 27'
13
+ LTS : true
14
+ - ver : ' 28'
15
+ LTS : true
16
+ - ver : ' 29'
17
+ LTS : true
18
+ - ver : ' 30'
19
+ LTS : false
20
+ - ver : ' 31'
21
+ LTS : false
22
+ - ver : ' 32'
23
+ LTS : false
24
+ # - ver: '33'
25
+ # LTS: 'false'
26
+
7
27
stages :
8
28
- stage : setup
9
29
displayName : Variable Group Init
@@ -59,32 +79,34 @@ stages:
59
79
variables :
60
80
commitID : $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
61
81
jobs :
62
- - job : cluster29
63
- displayName : 1.29 Cluster Creation
64
- pool :
65
- name : " $(BUILD_POOL_NAME_DEFAULT)"
66
- strategy :
67
- matrix :
68
- cniv1 :
69
- clusterType : cniv1-up
70
- clusterName : cniv1
71
- cilium :
72
- clusterType : overlay-cilium-up
73
- clusterName : cilium
74
- overlay :
75
- clusterType : overlay-up
76
- clusterName : overlay
77
- steps :
78
- - template : ../../templates/create-cluster-steps.yaml
79
- parameters :
80
- clusterType : $(clusterType)
81
- clusterName : $(clusterName)-29-$(commitID)
82
- k8sVersion : 1.29
83
- vmSize : Standard_B2ms
84
- vmSizeWin : Standard_B2ms
85
- os : windows
86
- region : $(REGION_AKS_CLUSTER_TEST)
87
- LTS : true
82
+ - ${{ each version in parameters.versions }} :
83
+ - job : cluster${{ version.ver }}
84
+ displayName : 1.${{ version.ver }} Cluster Creation
85
+ pool :
86
+ name : " $(BUILD_POOL_NAME_DEFAULT)"
87
+ strategy :
88
+ matrix :
89
+ cniv1 :
90
+ clusterType : cniv1-up
91
+ clusterName : cniv1
92
+ cilium :
93
+ clusterType : overlay-cilium-up
94
+ clusterName : cilium
95
+ overlay :
96
+ clusterType : overlay-up
97
+ clusterName : overlay
98
+ steps :
99
+ - template : ../../templates/create-cluster-steps.yaml
100
+ parameters :
101
+ clusterType : $(clusterType)
102
+ clusterName : $(clusterName)-${{ version.ver }}-$(commitID)
103
+ k8sVersion : 1.${{ version.ver }}
104
+ vmSize : Standard_B2ms
105
+ vmSizeWin : Standard_B2ms
106
+ os : windows
107
+ region : $(REGION_AKS_CLUSTER_TEST)
108
+ LTS : ${{ version.LTS }}
109
+
88
110
89
111
- stage : clusterDelete
90
112
displayName : " Cluster Delete"
@@ -95,24 +117,26 @@ stages:
95
117
variables :
96
118
commitID : $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
97
119
jobs :
98
- - job : cluster29
99
- displayName : 1.29 Cluster Delete
100
- pool :
101
- name : " $(BUILD_POOL_NAME_DEFAULT)"
102
- strategy :
103
- matrix :
104
- cniv1 :
105
- clusterName : cniv1
106
- cilium :
107
- clusterName : cilium
108
- overlay :
109
- clusterName : overlay
110
- steps :
111
- - template : ../../templates/delete-cluster.yaml
112
- parameters :
113
- name : $(clusterName)-29-$(commitID)
114
- clusterName : $(clusterName)-29-$(commitID)
115
- region : $(REGION_AKS_CLUSTER_TEST)
116
- sub : $(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS)
117
- svcConn : $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
120
+ - ${{ each version in parameters.versions }} :
121
+ - job : cluster${{ version.ver }}
122
+ displayName : 1.${{ version.ver }} Cluster Delete
123
+ pool :
124
+ name : " $(BUILD_POOL_NAME_DEFAULT)"
125
+ strategy :
126
+ matrix :
127
+ cniv1 :
128
+ clusterName : cniv1
129
+ cilium :
130
+ clusterName : cilium
131
+ overlay :
132
+ clusterName : overlay
133
+ steps :
134
+ - template : ../../templates/delete-cluster.yaml
135
+ parameters :
136
+ name : $(clusterName)-${{ version.ver }}-$(commitID)
137
+ clusterName : $(clusterName)-${{ version.ver }}-$(commitID)
138
+ region : $(REGION_AKS_CLUSTER_TEST)
139
+ sub : $(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS)
140
+ svcConn : $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
141
+
118
142
0 commit comments