@@ -204,17 +204,17 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
204
204
shouldMatch bool
205
205
}{{
206
206
name : "no clustername, namespace, or label selector specified should match any MachineSet" ,
207
- testSpec : createTestSpec (RandomString (6 ), RandomString (6 ), RandomString (6 ), 1 , false , nil , nil ),
207
+ testSpec : createTestSpec (RandomString (6 ), RandomString (6 ), RandomString (6 ), 1 , false , nil , nil , nil ),
208
208
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {labelSelector : labels .NewSelector ()},
209
209
shouldMatch : true ,
210
210
}, {
211
211
name : "no clustername, namespace, or label selector specified should match any MachineDeployment" ,
212
- testSpec : createTestSpec (RandomString (6 ), RandomString (6 ), RandomString (6 ), 1 , true , nil , nil ),
212
+ testSpec : createTestSpec (RandomString (6 ), RandomString (6 ), RandomString (6 ), 1 , true , nil , nil , nil ),
213
213
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {labelSelector : labels .NewSelector ()},
214
214
shouldMatch : true ,
215
215
}, {
216
216
name : "clustername specified does not match MachineSet, namespace matches, no labels specified" ,
217
- testSpec : createTestSpec ("default" , RandomString (6 ), RandomString (6 ), 1 , false , nil , nil ),
217
+ testSpec : createTestSpec ("default" , RandomString (6 ), RandomString (6 ), 1 , false , nil , nil , nil ),
218
218
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
219
219
clusterName : "foo" ,
220
220
namespace : "default" ,
@@ -223,7 +223,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
223
223
shouldMatch : false ,
224
224
}, {
225
225
name : "clustername specified does not match MachineDeployment, namespace matches, no labels specified" ,
226
- testSpec : createTestSpec ("default" , RandomString (6 ), RandomString (6 ), 1 , true , nil , nil ),
226
+ testSpec : createTestSpec ("default" , RandomString (6 ), RandomString (6 ), 1 , true , nil , nil , nil ),
227
227
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
228
228
clusterName : "foo" ,
229
229
namespace : "default" ,
@@ -232,7 +232,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
232
232
shouldMatch : false ,
233
233
}, {
234
234
name : "namespace specified does not match MachineSet, clusterName matches, no labels specified" ,
235
- testSpec : createTestSpec (RandomString (6 ), "foo" , RandomString (6 ), 1 , false , nil , nil ),
235
+ testSpec : createTestSpec (RandomString (6 ), "foo" , RandomString (6 ), 1 , false , nil , nil , nil ),
236
236
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
237
237
clusterName : "foo" ,
238
238
namespace : "default" ,
@@ -241,7 +241,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
241
241
shouldMatch : false ,
242
242
}, {
243
243
name : "clustername specified does not match MachineDeployment, namespace matches, no labels specified" ,
244
- testSpec : createTestSpec (RandomString (6 ), "foo" , RandomString (6 ), 1 , true , nil , nil ),
244
+ testSpec : createTestSpec (RandomString (6 ), "foo" , RandomString (6 ), 1 , true , nil , nil , nil ),
245
245
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
246
246
clusterName : "foo" ,
247
247
namespace : "default" ,
@@ -250,7 +250,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
250
250
shouldMatch : false ,
251
251
}, {
252
252
name : "namespace and clusterName matches MachineSet, no labels specified" ,
253
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil ),
253
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil , nil ),
254
254
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
255
255
clusterName : "foo" ,
256
256
namespace : "default" ,
@@ -259,7 +259,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
259
259
shouldMatch : true ,
260
260
}, {
261
261
name : "namespace and clusterName matches MachineDeployment, no labels specified" ,
262
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil ),
262
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil , nil ),
263
263
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
264
264
clusterName : "foo" ,
265
265
namespace : "default" ,
@@ -268,7 +268,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
268
268
shouldMatch : true ,
269
269
}, {
270
270
name : "namespace and clusterName matches MachineSet, does not match label selector" ,
271
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil ),
271
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil , nil ),
272
272
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
273
273
clusterName : "foo" ,
274
274
namespace : "default" ,
@@ -277,7 +277,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
277
277
shouldMatch : false ,
278
278
}, {
279
279
name : "namespace and clusterName matches MachineDeployment, does not match label selector" ,
280
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil ),
280
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil , nil ),
281
281
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
282
282
clusterName : "foo" ,
283
283
namespace : "default" ,
@@ -286,7 +286,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
286
286
shouldMatch : false ,
287
287
}, {
288
288
name : "namespace, clusterName, and label selector matches MachineSet" ,
289
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil ),
289
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , false , nil , nil , nil ),
290
290
additionalLabels : map [string ]string {"color" : "green" },
291
291
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
292
292
clusterName : "foo" ,
@@ -296,7 +296,7 @@ func Test_allowedByAutoDiscoverySpec(t *testing.T) {
296
296
shouldMatch : true ,
297
297
}, {
298
298
name : "namespace, clusterName, and label selector matches MachineDeployment" ,
299
- testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil ),
299
+ testSpec : createTestSpec ("default" , "foo" , RandomString (6 ), 1 , true , nil , nil , nil ),
300
300
additionalLabels : map [string ]string {"color" : "green" },
301
301
autoDiscoveryConfig : & clusterAPIAutoDiscoveryConfig {
302
302
clusterName : "foo" ,
0 commit comments